duplicateChildrenStates
If true, component applies all of its children's drawable states (focused, pressed, etc.) to itself.
In the following example, when OtherStatefulDrawable
gets pressed state, its parent Row
will also get that pressed state within itself:
Row.create(c)
.drawable(stateListDrawable)
.duplicateChildrenStates(true)
.child(
OtherStatefulDrawable.create(c)
.clickable(true))
Content copied to clipboard