android:duplicateParentState="true"
did not help me.
To make your layout clickable with its children you need add this option for every child:
android:clickable="false"
Then click handling will go up to parent.
More Related Contents:
- Linear Layout and weight in Android
- Is a RelativeLayout more expensive than a LinearLayout?
- How to group RadioButton from different LinearLayouts?
- How do I use a compound drawable instead of a LinearLayout that contains an ImageView and a TextView
- How to pass a view’s onClick event to its parent on Android?
- java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.widget.Gallery$LayoutParams
- What are the differences between LinearLayout, RelativeLayout, and AbsoluteLayout?
- Make an Android button change background on click through XML
- Fit Image in ImageButton in Android
- How to click or tap on a TextView text
- Android: How to Programmatically set the size of a Layout
- How to show shadow around the linearlayout in Android?
- How to add (vertical) divider to a horizontal LinearLayout?
- Change clickable TextView’s color on focus and click?
- Get context inside onClick(DialogInterface v, int buttonId)?
- OnItemClickListener using ArrayAdapter for ListView
- How to set delay in Android onClick function
- How to add border around linear layout except at the bottom?
- How do you make a LinearLayout scrollable?
- Put buttons at bottom of screen with LinearLayout?
- How to prevent the activity from loading twice on pressing the button
- ScrollView not scrolling at all
- Adding LinearLayout programmatically in Android doesn’t work
- How to use getResource.getIdentifier() to get Layout?
- How to set Ripple effect on a LinearLayout programmatically?
- How can I detect a click on the ActionBar title?
- Refreshing a LinearLayout after adding a view
- TextView restarts Marquee when changing another TextView in same LinearLayout
- How to set both gravity and layout gravity of a LinearLayout programatically
- combining wrap_content on parent and fill_parent on child