Can you add an example how we can use behavior_** attributes?
Kata
21

The gist I included in the post actually includes a custom behavior_ attribute, which you’d just add to your view alongside the layout_behavior attribute:

<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior=".MaxWidthBehavior"
app:behavior_maxWidth="400dp" />
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.