{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public final class DrawerActions
Espresso actions for using a DrawerLayout.
| See also | |
|---|---|
<a href="http://developer.android.com/design/patterns/navigation-drawer.html">Navigation |
drawer design guide |
Public constructors |
|
|---|---|
Public methods |
|
|---|---|
static ViewAction |
close()Creates an action which closes the |
static ViewAction |
close(int gravity)Creates an action which closes the |
static void |
This method is deprecated. Use |
static void |
This method is deprecated. Use |
static ViewAction |
open()Creates an action which opens the |
static ViewAction |
open(int gravity)Creates an action which opens the |
static void |
This method is deprecated. Use |
static void |
This method is deprecated. Use |
public static ViewAction close()
Creates an action which closes the DrawerLayout with gravity START. This method blocks until the drawer is fully closed. No operation if the drawer is already closed.
public static ViewAction close(int gravity)
Creates an action which closes the DrawerLayout with the gravity. This method blocks until the drawer is fully closed. No operation if the drawer is already closed.
public static ViewAction open()
Creates an action which opens the DrawerLayout drawer with gravity START. This method blocks until the drawer is fully open. No operation if the drawer is already open.
public static ViewAction open(int gravity)
Creates an action which opens the DrawerLayout drawer with the gravity. This method blocks until the drawer is fully open. No operation if the drawer is already open.