UserResizeBehavior

Policy implementation for user resizing. See USER_RESIZE_RELAYOUT_WHEN_COMPLETE or USER_RESIZE_RELAYOUT_WHEN_MOVED for default implementations, or this interface may be implemented externally to apply additional behaviors such as snapping to predefined breakpoints.

Functions

Link copied to clipboard
abstract fun onUserResizeCancelled(slidingPaneLayout: SlidingPaneLayout, dividerPositionX: Int)

Called when a user resize has been cancelled; typically another ancestor view has intercepted the touch event stream for the gesture.

Link copied to clipboard
abstract fun onUserResizeComplete(slidingPaneLayout: SlidingPaneLayout, dividerPositionX: Int)

Called when a user resize completed successfully; the user let go of the divider with intent to reposition it.

Link copied to clipboard
abstract fun onUserResizeProgress(slidingPaneLayout: SlidingPaneLayout, dividerPositionX: Int)

Called when a user resize has progressed to a new divider position.

Link copied to clipboard
abstract fun onUserResizeStarted(slidingPaneLayout: SlidingPaneLayout, dividerPositionX: Int)

Called when a user resize begins and the user is now dragging the divider.