Saw such a layout, what does appbar_scrolling_view_behavior do?

 <"android.support.v4.view.ViewPager android:id="@+id/viewpager" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior" /> 

    1 answer 1

    This attribute points to the class in which it is described how this element should behave if it is a direct descendant of CoordinatorLayout . In this case, the value of appbar_scrolling_view_behavior says that this element will respond to events generated by AppBarLayout .

    • one
      Not quite right, this connection does not define behavior, but translates events (touches, scrolling, etc.) from the child View to the parent - pavlofff
    • @pavlofff, well, I responded to the best of my understanding) - Yuriy SPb