Most visited

Recently visited

DrawerLayout.SimpleDrawerListener

public static abstract class DrawerLayout.SimpleDrawerListener
extends Object implements DrawerLayout.DrawerListener

java.lang.Object
   ↳ android.support.v4.widget.DrawerLayout.SimpleDrawerListener


DrawerLayout.DrawerListener所有方法的存根/不带操作实现。 如果您只关心几种可用的回调方法,则覆盖此选项。

Summary

Public constructors

DrawerLayout.SimpleDrawerListener()

Public methods

void onDrawerClosed(View drawerView)

当抽屉完全处于完全关闭状态时调用。

void onDrawerOpened(View drawerView)

当抽屉完全打开状态时调用。

void onDrawerSlide(View drawerView, float slideOffset)

当抽屉的位置改变时调用。

void onDrawerStateChanged(int newState)

当抽屉运动状态改变时调用。

Inherited methods

From class java.lang.Object
From interface android.support.v4.widget.DrawerLayout.DrawerListener

Public constructors

DrawerLayout.SimpleDrawerListener

DrawerLayout.SimpleDrawerListener ()

Public methods

onDrawerClosed

void onDrawerClosed (View drawerView)

当抽屉完全处于完全关闭状态时调用。

Parameters
drawerView View: Drawer view that is now closed

onDrawerOpened

void onDrawerOpened (View drawerView)

当抽屉完全打开状态时调用。 抽屉此时是互动的。

Parameters
drawerView View: Drawer view that is now open

onDrawerSlide

void onDrawerSlide (View drawerView, 
                float slideOffset)

当抽屉的位置改变时调用。

Parameters
drawerView View: The child view that was moved
slideOffset float: The new offset of this drawer within its range, from 0-1

onDrawerStateChanged

void onDrawerStateChanged (int newState)

当抽屉运动状态改变时调用。 新的状态将是一个STATE_IDLESTATE_DRAGGING或者STATE_SETTLING

Parameters
newState int: The new drawer motion state

Hooray!