public static abstract class DrawerLayout.SimpleDrawerListener
extends Object
implements DrawerLayout.DrawerListener
java.lang.Object | |
↳ | android.support.v4.widget.DrawerLayout.SimpleDrawerListener |
DrawerLayout.DrawerListener
所有方法的存根/不带操作实现。 如果您只关心几种可用的回调方法,则覆盖此选项。
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
|
DrawerLayout.SimpleDrawerListener ()
void onDrawerClosed (View drawerView)
当抽屉完全处于完全关闭状态时调用。
Parameters | |
---|---|
drawerView |
View : Drawer view that is now closed |
void onDrawerOpened (View drawerView)
当抽屉完全打开状态时调用。 抽屉此时是互动的。
Parameters | |
---|---|
drawerView |
View : Drawer view that is now open |
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 |
void onDrawerStateChanged (int newState)
当抽屉运动状态改变时调用。 新的状态将是一个STATE_IDLE
, STATE_DRAGGING
或者STATE_SETTLING
。
Parameters | |
---|---|
newState |
int : The new drawer motion state |