public final class DrawerActions
extends Object
| java.lang.Object | |
| ↳ | android.support.test.espresso.contrib.DrawerActions |
意式浓缩咖啡使用 DrawerLayout动作。
Public methods |
|
|---|---|
static ViewAction |
close(int gravity) 创建一个采用重力关闭 |
static ViewAction |
close() 创建一个采用重力启动关闭 |
static void |
closeDrawer(int drawerLayoutId, int gravity) 此方法已弃用。 匹配视图后使用 |
static void |
closeDrawer(int drawerLayoutId) 此方法已弃用。 匹配视图后,使用 |
static ViewAction |
open(int gravity) 创建一个动作,通过重力打开 |
static ViewAction |
open() 创建一个动作,以重力START打开 |
static void |
openDrawer(int drawerLayoutId) 此方法已弃用。 匹配视图后使用 |
static void |
openDrawer(int drawerLayoutId, int gravity) 此方法已弃用。 匹配视图后,使用 |
Inherited methods |
|
|---|---|
java.lang.Object
|
|
ViewAction close (int gravity)
创建一个动作,通过重力关闭DrawerLayout 。 此方法会阻塞,直到抽屉完全关闭。 如果抽屉已关闭,则无操作。
| Parameters | |
|---|---|
gravity |
int
|
| Returns | |
|---|---|
ViewAction |
|
ViewAction close ()
创建一个采用重力启动关闭DrawerLayout的动作。 此方法会阻塞,直到抽屉完全关闭。 如果抽屉已关闭,则无操作。
| Returns | |
|---|---|
ViewAction |
|
void closeDrawer (int drawerLayoutId,
int gravity)
此方法已弃用。
匹配视图后,使用open(int)和perform 。 该方法将在下一版本中删除。
| Parameters | |
|---|---|
drawerLayoutId |
int
|
gravity |
int
|
void closeDrawer (int drawerLayoutId)
此方法已弃用。
匹配视图后,使用close()和perform 。 该方法将在下一版本中删除。
| Parameters | |
|---|---|
drawerLayoutId |
int
|
ViewAction open (int gravity)
创建一个动作,通过重力打开DrawerLayout抽屉。 此方法会阻塞,直到抽屉完全打开。 如果抽屉已经打开,则无操作。
| Parameters | |
|---|---|
gravity |
int
|
| Returns | |
|---|---|
ViewAction |
|
ViewAction open ()
创建一个可以用重力START打开DrawerLayout抽屉的动作。 此方法会阻塞,直到抽屉完全打开。 如果抽屉已经打开,则无操作。
| Returns | |
|---|---|
ViewAction |
|
void openDrawer (int drawerLayoutId)
此方法已弃用。
匹配视图后,使用open()和perform 。 该方法将在下一版本中删除。
| Parameters | |
|---|---|
drawerLayoutId |
int
|
void openDrawer (int drawerLayoutId,
int gravity)
此方法已弃用。
匹配视图后使用open(int)和perform 。 该方法将在下一版本中删除。
| Parameters | |
|---|---|
drawerLayoutId |
int
|
gravity |
int
|