Bo Z
Bo Z

Reputation: 2607

How to recognize layout by sending view as a parameter?

I am sending view as a parameter. So in private method somehow I need to recognize which view I received. Could you please let me know how to do that.

I have searched on stack and all solutions are based on tag or inflator. Which generates more code in my case.

Thank you

Upvotes: 0

Views: 42

Answers (1)

Mostafa Gazar
Mostafa Gazar

Reputation: 2537

Views in Android have an id and tags, you could use either to identify which view you passed.

If that is not what you are after, can you explain in more details what you are trying to do?

Upvotes: 1

Related Questions