I have a program with a couple of different layout files and with buttons etc on each layout. The layouts occupy the entire screen size.
When I start program I load layout "main" which has some imageviews on bottom which act as buttons. One of these imageviews loads another layout which obscures the "main" layout. The second layout has further imageviews on bottom of page.
My problem is that when I tap hard (not sure why) on a part of the screen that obscure layout "main" imageviews then my TAP (click) is passed to layout main even though it is not visible as it is covered by a panel from 2nd layout.
How can this happen ... I assumed that layouts were like Windows forms and events would remain on the top layout ???
Unconsumed touch events are passed to the underlying views.
You should add a sub for the panel touch event or click event and it will consume the event. The sub can be empty.