Side Sheet Behavior
An interaction behavior plugin for a child view of CoordinatorLayout to make it work as a side sheet.
For more information, see the component developer guidance and design guidelines.
Functions
Link copied to clipboard
Adds a callback to be notified of side sheet events.
Link copied to clipboard
Call this method from onBackCancelled or handleOnBackCancelled so that the back handler can cancel the back animation.
Link copied to clipboard
A utility function to get the SideSheetBehavior associated with the
view
.Link copied to clipboard
Returns the sibling view that is used for coplanar sheet expansion.
Link copied to clipboard
Returns the sheet's offset from the inner edge when expanded.
Link copied to clipboard
Call this method from onBackInvoked or handleOnBackPressed so that the back handler can complete the back animation, or handle back without progress in certain cases.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onInterceptTouchEvent(@NonNull parent: CoordinatorLayout, @NonNull child: V, @NonNull event: MotionEvent): Boolean
Link copied to clipboard
open fun onLayoutChild(@NonNull parent: CoordinatorLayout, @NonNull child: V, layoutDirection: Int): Boolean
Link copied to clipboard
open fun onMeasureChild(@NonNull parent: CoordinatorLayout, @NonNull child: V, parentWidthMeasureSpec: Int, widthUsed: Int, parentHeightMeasureSpec: Int, heightUsed: Int): Boolean
Link copied to clipboard
open fun onRestoreInstanceState(@NonNull parent: CoordinatorLayout, @NonNull child: V, @NonNull state: Parcelable)
Link copied to clipboard
Link copied to clipboard
open fun onTouchEvent(@NonNull parent: CoordinatorLayout, @NonNull child: V, @NonNull event: MotionEvent): Boolean
Link copied to clipboard
Removes a previously added callback.
Link copied to clipboard
Set the sibling view to use for coplanar sheet expansion.
Link copied to clipboard
Set the sibling id to use for coplanar sheet expansion.
Link copied to clipboard
Sets whether this sheet is can be hidden/expanded by dragging.
Link copied to clipboard
Checks whether an animation should be smooth after the side sheet is released after dragging.
Link copied to clipboard
Call this method from onBackStarted or handleOnBackStarted so that the back handler can initialize and start animating.
Link copied to clipboard
Call this method from onBackProgressed or handleOnBackProgressed so that the back handler can continue animating with a new progress value.