public interface

SlidingPaneLayout.PanelSlideListener

 androidx.slidingpanelayout.widget.SlidingPaneLayout.PanelSlideListener

Subclasses:

SlidingPaneLayout.SimplePanelSlideListener

Overview

Listener for monitoring events about sliding panes.

Summary

Methods
public voidonPanelClosed(View panel)

Called when a detail view becomes slid completely closed.

public voidonPanelOpened(View panel)

Called when a detail view becomes slid completely open.

public voidonPanelSlide(View panel, float slideOffset)

Called when a detail view's position changes.

Methods

public void onPanelSlide(View panel, float slideOffset)

Called when a detail view's position changes.

Parameters:

panel: The child view that was moved
slideOffset: The new offset of this sliding pane within its range, from 0-1

public void onPanelOpened(View panel)

Called when a detail view becomes slid completely open.

Parameters:

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

public void onPanelClosed(View panel)

Called when a detail view becomes slid completely closed.

Parameters:

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