Should it be set at the AppBarLayout sibling\'s parent or at the first Scrollable View inside its sibling?
With Material Design for Android, there are Views th
Check this link: https://developer.android.com/reference/android/support/design/widget/AppBarLayout.html
AppBarLayoutalso requires a separate scrolling sibling in order to know when to scroll. The binding is done through theAppBarLayout.ScrollingViewBehaviorclass, meaning that you should set your scrolling view's behavior to be an instance ofAppBarLayout.ScrollingViewBehavior. A string resource containing the full class name is available.
They mentioned about that, it should be the View which will be shown under the AppBarLayout like this:
My question is: in what exact
ViewGroup(or maybeView) should we put thatapp:layout_behavior?
And in this link: http://guides.codepath.com/android/Handling-Scrolls-with-CoordinatorLayout
Next, we need to define an association between the
AppBarLayoutand the View that will be scrolled. Add anapp:layout_behaviorto aRecyclerViewor any other View capable of nested scrolling such asNestedScrollView. The support library contains a special string resource@string/appbar_scrolling_view_behaviorthat maps toAppBarLayout.ScrollingViewBehavior, which is used to notify theAppBarLayoutwhen scroll events occur on this particular view. The behavior must be established on the view that triggers the event.