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" />
Show your support

Clapping shows how much you appreciated Ian Lake’s story.