How to check if a button is from certain layout?
<p>Let's say I have 2 layouts with two buttons in each. When I click one of them, and then the next one, is there a way I can check if they are from the same layout? And lets say I tagged layout's as android:tag="1" and android:tag="2". I want if they are from the same layout to do nothing, and if they aren't to do some action.</p>
