{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
class DrawerMatchers
Hamcrest matchers for a DrawerLayout.
Public constructors |
|
|---|---|
Public functions |
|
|---|---|
java-static Matcher<View!>! |
Returns a matcher that verifies that the drawer with the specified gravity is closed. |
java-static Matcher<View!>! |
isClosed()Returns a matcher that verifies that the drawer (with gravity START) is closed. |
java-static Matcher<View!>! |
Returns a matcher that verifies that the drawer with the specified gravity is open. |
java-static Matcher<View!>! |
isOpen()Returns a matcher that verifies that the drawer (with gravity START) is open. |
java-static fun isClosed(gravity: Int): Matcher<View!>!
Returns a matcher that verifies that the drawer with the specified gravity is closed. Matches only when the drawer is fully closed. Use isOpen instead of
not(isClosed())) when you wish to check that the drawer is fully open.
java-static fun isClosed(): Matcher<View!>!
Returns a matcher that verifies that the drawer (with gravity START) is closed. Matches only when the drawer is fully closed. Use isOpen instead of not(isClosed())) when you wish to check that the drawer is fully open.