DrawerMatchers
class DrawerMatchers
Hamcrest matchers for a DrawerLayout.
Summary
Public functions |
|
|---|---|
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 closed. |
java-static Matcher<View!>! |
isOpen()Returns a matcher that verifies that the drawer (with gravity START) is open. |
java-static Matcher<View!>! |
Returns a matcher that verifies that the drawer with the specified gravity is open. |
Public functions
isClosed
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.
isClosed
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.