SlidingPaneLayout.SimplePanelSlideListener

public static class SlidingPaneLayout.SimplePanelSlideListener
extends Object implements SlidingPaneLayout.PanelSlideListener

java.lang.Object
   ↳ androidx.slidingpanelayout.widget.SlidingPaneLayout.SimplePanelSlideListener


No-op stubs for SlidingPaneLayout.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

SimplePanelSlideListener()

Public methods

void onPanelClosed(View panel)

Called when a detail view becomes slid completely closed.

void onPanelOpened(View panel)

Called when a detail view becomes slid completely open.

void onPanelSlide(View panel, float slideOffset)

Called when a detail view's position changes.

Inherited methods

Public constructors

SimplePanelSlideListener

public SimplePanelSlideListener ()

Public methods

onPanelClosed

public void onPanelClosed (View panel)

Called when a detail view becomes slid completely closed.

Parameters
panel View: The detail view that was slid to a closed position

onPanelOpened

public void onPanelOpened (View panel)

Called when a detail view becomes slid completely open.

Parameters
panel View: The detail view that was slid to an open position

onPanelSlide

public void onPanelSlide (View panel, 
                float slideOffset)

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