Is there any way to attach a behavior in response to a sibling’s child (or grandchild) event?
Aitor Viana
11

No, unfortunately Behaviors must be attached to direct children. The ‘Attaching a Behavior programatically section’, the Behavior itself is stored as part of LayoutParams of each view and CoordinatorLayout only manages the LayoutParams of its direct children.

Like what you read? Give Ian Lake a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.