public abstract static class AppBarLayout.Behavior.DragCallback extends Object
AppBarLayout
dragging.Constructor and Description |
---|
DragCallback() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
canDrag(AppBarLayout appBarLayout)
Allows control over whether the given
AppBarLayout can be dragged or not. |
public abstract boolean canDrag(@NonNull AppBarLayout appBarLayout)
AppBarLayout
can be dragged or not.
Dragging is defined as a direct touch on the AppBarLayout with movement. This call does not affect any nested scrolling.