ResponsivePaneController

Coordinates pane state, gestures, layout, and visual effects.

Initialize with a layout before forwarding framework callbacks. The owning layout installs its own listeners; replacing them can disconnect accessibility and back handling.

Inheritors

Properties

Link copied to clipboard

Whether content outside an opened drawer may receive interaction.

Link copied to clipboard

Listener for width changes, receiving a nullable drawer and normalized slide progress.

Link copied to clipboard

Listener for transition-end notifications. The drawer argument may be null if unavailable.

Functions

Link copied to clipboard
abstract fun cleanup()

Cancels strategy animations and clears cached views and elevation effects.

Link copied to clipboard
abstract fun computeScroll(viewGroup: ViewGroup)

Advances gesture settling for viewGroup and schedules further frames when needed.

Link copied to clipboard

Returns the strategy's current settled pane state.

Link copied to clipboard
abstract fun getPaneConfig(paneState: PaneState): ResponsiveConfig

Returns the visual and width configuration for paneState.

Link copied to clipboard
abstract fun initialize(responsivePaneLayout: ResponsivePaneLayout)

Associates this controller with responsivePaneLayout and initializes gestures and presets.

Link copied to clipboard
abstract fun onConfigurationChanged(responsivePaneLayout: ResponsivePaneLayout, newConfig: Configuration)

Updates the associated responsivePaneLayout for newConfig.

Link copied to clipboard
abstract fun onInterceptTouchEvent(viewGroup: ViewGroup, ev: MotionEvent): Boolean?

Evaluates interception of ev within viewGroup.

Link copied to clipboard
abstract fun onLayout(viewGroup: ViewGroup, changed: Boolean, left: Int, top: Int, right: Int, bottom: Int)

Updates gesture tracking after viewGroup is laid out.

Link copied to clipboard
abstract fun onTouchEvent(viewGroup: ViewGroup, event: MotionEvent): Boolean?

Processes event within viewGroup.

Link copied to clipboard
abstract fun setOutsideTouchEnabled(enabled: Boolean)

Sets the controller's outside-touch policy to enabled.

Link copied to clipboard
abstract fun setPaneConfig(viewGroup: ResponsivePaneLayout, paneState: PaneState, responsiveConfig: ResponsiveConfig)
Link copied to clipboard
abstract fun setPaneState(viewGroup: ViewGroup, state: PaneState, animate: Boolean)

Requests state for viewGroup.

Link copied to clipboard

Reapplies the current strategy's constraints to view.