SlidingPaneLayout.SimplePanelSlideListener


class SlidingPaneLayout.SimplePanelSlideListener : SlidingPaneLayout.PanelSlideListener


No-op stubs for PanelSlideListener. If you only want to implement a subset of the listener methods you can extend this instead of implement the full interface.

Summary

Public constructors

Public functions

Unit

Called when a detail view becomes slid completely closed.

Unit

Called when a detail view becomes slid completely open.

Unit
onPanelSlide(panel: View, slideOffset: Float)

Called when a detail view's position changes.

Public constructors

SimplePanelSlideListener

Added in 1.1.0
SimplePanelSlideListener()

Public functions

onPanelClosed

Added in 1.3.0-alpha01
fun onPanelClosed(panel: View): Unit

Called when a detail view becomes slid completely closed.

Parameters
panel: View

The detail view that was slid to a closed position

onPanelOpened

Added in 1.3.0-alpha01
fun onPanelOpened(panel: View): Unit

Called when a detail view becomes slid completely open.

Parameters
panel: View

The detail view that was slid to an open position

onPanelSlide

Added in 1.3.0-alpha01
fun onPanelSlide(panel: View, slideOffset: Float): Unit

Called when a detail view's position changes.

Parameters
panel: View

The child view that was moved

slideOffset: Float

The new offset of this sliding pane within its range, from 0-1