How to disable scrolling of AppBarLayout in CoordinatorLayout?
I’m not sure I got it, but I think you are looking for a DragCallback. The DragCallback interface allows to choose whether the sibling scrolling view should be controlled by scrolls onto the AppBarLayout. You can define one by calling: CoordinatorLayout.LayoutParams params = (CoordinatorLayout.LayoutParams) appBarLayout.getLayoutParams(); AppBarLayout.Behavior behavior = (AppBarLayout.Behavior) params.getBehavior(); behavior.setDragCallback(new AppBarLayout.Behavior.DragCallback() { @Override public … Read more