SlidingPaneLayout.PanelSlideListener


interface SlidingPaneLayout.PanelSlideListener


Listener for monitoring events about sliding panes.

Summary

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 functions

onPanelClosed

Added in 1.1.0
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.1.0
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.1.0
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