I have a frame layout with some layout as the first element and another layout as the second (and therefore above the first). The top layout is translucent, so you can see what is at the bottom of the bottom layout:
<FrameLayout> <BottomLayout android:onClick="BottomClicked"> <Button android:onClick="ButtonClicked"/> <TextView/> <TextView/> </BottomLayout> <TopLayout android:background="@color/semi-transparent" android:onClick="TopClicked"> </TopLayout> </FrameLayout>
The bottom layout will change over time, with the addition / removal of views or the setting of visible / invisible / departed. I would like to be able to fire the onClick event for both the top layout and everything that can be below it.
For example, if the user clicks on the part of the top layout that is also above the button in the bottom layout, I would like to call onClick for both the top layout and the button in the bottom layout. At the moment, only onClick for the top layout is called
EDIT:
Edited question will be more general / less specific
source share