public static class SlidingPaneLayout.SimplePanelSlideListener extends Object implements SlidingPaneLayout.PanelSlideListener
SlidingPaneLayout.PanelSlideListener
. If you only want to implement a subset
of the listener methods you can extend this instead of implement the full interface.Constructor and Description |
---|
SimplePanelSlideListener() |
Modifier and Type | Method and Description |
---|---|
void |
onPanelClosed(View panel)
Called when a sliding pane becomes slid completely closed.
|
void |
onPanelOpened(View panel)
Called when a sliding pane becomes slid completely open.
|
void |
onPanelSlide(View panel,
float slideOffset)
Called when a sliding pane's position changes.
|
public void onPanelSlide(View panel, float slideOffset)
SlidingPaneLayout.PanelSlideListener
onPanelSlide
in interface SlidingPaneLayout.PanelSlideListener
panel
- The child view that was movedslideOffset
- The new offset of this sliding pane within its range, from 0-1public void onPanelOpened(View panel)
SlidingPaneLayout.PanelSlideListener
onPanelOpened
in interface SlidingPaneLayout.PanelSlideListener
panel
- The child view that was slid to an open position, revealing other panespublic void onPanelClosed(View panel)
SlidingPaneLayout.PanelSlideListener
onPanelClosed
in interface SlidingPaneLayout.PanelSlideListener
panel
- The child view that was slid to a closed position