Android Tutorial Grouped Views States Example

Here you can see how to group several views together so that they all share the same pressed state. It needs the reflection library.

In the example you have a parent panel, and then some child views added to it.
The key is to disable the Clickable property of the child views, so that the pressed event is always received by the parent, and to set the property duplicateParentState True on every child.
 

Attachments

  • GroupViewsStates.zip
    15.6 KB · Views: 439
Last edited:
Top