
The default AppBarLayout.Behavior for AppBarLayout.

Resource containing the full class name is available. Set your scrolling view's behavior to be an instance of AppBarLayout.ScrollingViewBehavior. Theīinding is done through the AppBarLayout.ScrollingViewBehavior behavior class, meaning that you should If you use AppBarLayout within a different ViewGroup, most of its functionality will notĪppBarLayout also requires a separate scrolling sibling in order to know when to scroll. This view depends heavily on being used as a direct child within a CoordinatorLayout.

appbar.AppBarLayoutĪppBarLayout is a vertical LinearLayout which implements many of the features of materialĭesigns app bar concept, namely scrolling gestures.Ĭhildren should provide their desired scrolling behavior through (int) and the associated layout xml attribute: app:layout_scrollFlags.
