DrawerActions

public final class DrawerActions
extends Object

java.lang.Object
   ↳ android.support.test.espresso.contrib.DrawerActions


意式浓缩咖啡使用 DrawerLayout动作。

也可以看看:

Summary

Public methods

static ViewAction close(int gravity)

创建一个采用重力关闭 DrawerLayout的动作。

static ViewAction close()

创建一个采用重力启动关闭 DrawerLayout的动作。

static void closeDrawer(int drawerLayoutId, int gravity)

此方法已弃用。 匹配视图后使用open(int)perform 该方法将在下一版本中删除。

static void closeDrawer(int drawerLayoutId)

此方法已弃用。 匹配视图后,使用close()perform 该方法将在下一版本中删除。

static ViewAction open(int gravity)

创建一个动作,通过重力打开 DrawerLayout抽屉。

static ViewAction open()

创建一个动作,以重力START打开 DrawerLayout抽屉。

static void openDrawer(int drawerLayoutId)

此方法已弃用。 匹配视图后使用open()perform 该方法将在下一版本中删除。

static void openDrawer(int drawerLayoutId, int gravity)

此方法已弃用。 匹配视图后,使用open(int)perform 该方法将在下一版本中删除。

Inherited methods

From class java.lang.Object

Public methods

close

ViewAction close (int gravity)

创建一个动作,通过重力关闭DrawerLayout 此方法会阻塞,直到抽屉完全关闭。 如果抽屉已关闭,则无操作。

Parameters
gravity int
Returns
ViewAction

close

ViewAction close ()

创建一个采用重力启动关闭DrawerLayout的动作。 此方法会阻塞,直到抽屉完全关闭。 如果抽屉已关闭,则无操作。

Returns
ViewAction

closeDrawer

void closeDrawer (int drawerLayoutId, 
                int gravity)

此方法已弃用。
匹配视图后,使用open(int)perform 该方法将在下一版本中删除。

Parameters
drawerLayoutId int
gravity int

closeDrawer

void closeDrawer (int drawerLayoutId)

此方法已弃用。
匹配视图后,使用close()perform 该方法将在下一版本中删除。

Parameters
drawerLayoutId int

open

ViewAction open (int gravity)

创建一个动作,通过重力打开DrawerLayout抽屉。 此方法会阻塞,直到抽屉完全打开。 如果抽屉已经打开,则无操作。

Parameters
gravity int
Returns
ViewAction

open

ViewAction open ()

创建一个可以用重力START打开DrawerLayout抽屉的动作。 此方法会阻塞,直到抽屉完全打开。 如果抽屉已经打开,则无操作。

Returns
ViewAction

openDrawer

void openDrawer (int drawerLayoutId)

此方法已弃用。
匹配视图后,使用open()perform 该方法将在下一版本中删除。

Parameters
drawerLayoutId int

openDrawer

void openDrawer (int drawerLayoutId, 
                int gravity)

此方法已弃用。
匹配视图后使用open(int)perform 该方法将在下一版本中删除。

Parameters
drawerLayoutId int
gravity int