When you set android:duplicateParentState="true"
to a view, the view gets its drawable state (focused, pressed, etc.) from its direct parent rather than from itself. So the parent Layout
should be clickable
.
Just add android:clickable="true"
to the parent layout
of the inner LinearLayout
.