SlidingPaneLayout.SimplePanelSlideListener


public class SlidingPaneLayout.SimplePanelSlideListener implements 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 methods

void

Called when a detail view becomes slid completely closed.

void

Called when a detail view becomes slid completely open.

void
onPanelSlide(@NonNull View panel, float slideOffset)

Called when a detail view's position changes.

Public constructors

SimplePanelSlideListener

Added in 1.1.0
public SimplePanelSlideListener()

Public methods

onPanelClosed

Added in 1.3.0-alpha01
public 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.3.0-alpha01
public 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.3.0-alpha01
public 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