SlidingPaneLayout.PanelSlideListener


public interface SlidingPaneLayout.PanelSlideListener


Listener for monitoring events about sliding panes.

Summary

Public methods

abstract void

Called when a detail view becomes slid completely closed.

abstract void

Called when a detail view becomes slid completely open.

abstract void
onPanelSlide(@NonNull View panel, float slideOffset)

Called when a detail view's position changes.

Public methods

onPanelClosed

Added in 1.1.0
abstract void onPanelClosed(@NonNull View panel)

Called when a detail view becomes slid completely closed.

Parameters
@NonNull View panel

The detail view that was slid to a closed position

onPanelOpened

Added in 1.1.0
abstract void onPanelOpened(@NonNull View panel)

Called when a detail view becomes slid completely open.

Parameters
@NonNull View panel

The detail view that was slid to an open position

onPanelSlide

Added in 1.1.0
abstract void onPanelSlide(@NonNull View panel, float slideOffset)

Called when a detail view's position changes.

Parameters
@NonNull View panel

The child view that was moved

float slideOffset

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