Most visited

Recently visited

SlidingPaneLayout.SimplePanelSlideListener

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

java.lang.Object
   ↳ android.support.v4.widget.SlidingPaneLayout.SimplePanelSlideListener


无操作存根SlidingPaneLayout.PanelSlideListener 如果你只想实现监听器方法的一个子集,你可以扩展它而不是实现完整的接口。

Summary

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

Public constructors

SlidingPaneLayout.SimplePanelSlideListener

SlidingPaneLayout.SimplePanelSlideListener ()

Public methods

onPanelClosed

void onPanelClosed (View panel)

当滑动窗格滑动完全关闭时调用。 该窗格现在保证为交互式。 它现在可能会掩盖布局中的其他视图。

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

onPanelOpened

void onPanelOpened (View panel)

当滑动窗格完全打开时调用。 根据窗格有多少可见,此时窗格可能会或可能不会交互。

Parameters
panel View: The child view that was slid to an open position, revealing other panes

onPanelSlide

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

Hooray!