public static interface SlidingPaneLayout.PanelSlideListener
android.support.v4.widget.SlidingPaneLayout.PanelSlideListener |
Known Indirect Subclasses |
监听器用于监视滑动窗格的事件。
Public methods |
|
---|---|
abstract void |
onPanelClosed(View panel) 当滑动窗格滑动完全关闭时调用。 |
abstract void |
onPanelOpened(View panel) 当滑动窗格完全打开时调用。 |
abstract void |
onPanelSlide(View panel, float slideOffset) 当滑动窗格的位置改变时调用。 |
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 |