My bottom view contains two FrameLayouts with an ImageView each. These FrameLayout have a color selector for the states pressed=true y pressed=false. When the top view is open, and you click on it, the bottom view's last child changes its state to pressed, although it doesn't trigger its onClickListener, just changes its state.
If I add a new FrameLayout with another list selector at the end of the bottom view, this one changes its state instead. So it's always the last hchild of the bottom view that changes its state to pressed when I press the top view. How so?
I solved it by adding an extra FrameLayout with height and width=0 as last child of the bottom view, so it's not visible but the status doesn't change on any of the visible views. This is the code:
My bottom view contains two FrameLayouts with an ImageView each. These FrameLayout have a color selector for the states pressed=true y pressed=false. When the top view is open, and you click on it, the bottom view's last child changes its state to pressed, although it doesn't trigger its onClickListener, just changes its state.
If I add a new FrameLayout with another list selector at the end of the bottom view, this one changes its state instead. So it's always the last hchild of the bottom view that changes its state to pressed when I press the top view. How so?
I solved it by adding an extra FrameLayout with height and width=0 as last child of the bottom view, so it's not visible but the status doesn't change on any of the visible views. This is the code: