daimajia / daimajia/AndroidSwipeLayout

Bottom view with list selector changes state when top view is pressed

Open
#252 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
12.3k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

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:

``` xml



```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.