I am using the template layout which I import into different LinearLayouts. The template has a button in it.
When a user presses the button, I need to know in which LinearLayout the click event has occurred. Is this possible?
I am getting problem firing parent’s event as when you press the child element, the parent’s event will not fire at all.
you can get parent of any view using method:
http://developer.android.com/reference/android/view/View.html#getParent%28%29