public static class SlidingPaneLayout.SimplePanelSlideListener
extends Object
implements SlidingPaneLayout.PanelSlideListener
java.lang.Object | |
↳ | android.support.v4.widget.SlidingPaneLayout.SimplePanelSlideListener |
无操作存根SlidingPaneLayout.PanelSlideListener
。 如果你只想实现监听器方法的一个子集,你可以扩展它而不是实现完整的接口。
Public constructors |
|
---|---|
SlidingPaneLayout.SimplePanelSlideListener() |
Public methods |
|
---|---|
void |
onPanelClosed(View panel) 当滑动窗格滑动完全关闭时调用。 |
void |
onPanelOpened(View panel) 当滑动窗格完全打开时调用。 |
void |
onPanelSlide(View panel, float slideOffset) 当滑动窗格的位置改变时调用。 |
Inherited methods |
|
---|---|
From class java.lang.Object
|
|
From interface android.support.v4.widget.SlidingPaneLayout.PanelSlideListener
|
SlidingPaneLayout.SimplePanelSlideListener ()
void onPanelClosed (View panel)
当滑动窗格滑动完全关闭时调用。 该窗格现在保证为交互式。 它现在可能会掩盖布局中的其他视图。
Parameters | |
---|---|
panel |
View : The child view that was slid to a closed position |
void onPanelOpened (View panel)
当滑动窗格完全打开时调用。 根据窗格有多少可见,此时窗格可能会或可能不会交互。
Parameters | |
---|---|
panel |
View : The child view that was slid to an open position, revealing other panes |
void onPanelSlide (View panel, float slideOffset)
当滑动窗格的位置改变时调用。
Parameters | |
---|---|
panel |
View : The child view that was moved |
slideOffset |
float : The new offset of this sliding pane within its range, from 0-1 |