Stay organized with collections Save and categorize content based on your preferences.

DrawerMatchers

class DrawerMatchers


Hamcrest matchers for a DrawerLayout.

Summary

Public constructors

Public functions

java-static Matcher<View>!

Returns a matcher that verifies that the drawer (with gravity START) is closed.

java-static Matcher<View>!
isClosed(gravity: Int)

Returns a matcher that verifies that the drawer with the specified gravity is closed.

java-static Matcher<View>!

Returns a matcher that verifies that the drawer (with gravity START) is open.

java-static Matcher<View>!
isOpen(gravity: Int)

Returns a matcher that verifies that the drawer with the specified gravity is open.

Public constructors

DrawerMatchers

DrawerMatchers()

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.

isOpen

java-static fun isOpen(): Matcher<View>!

Returns a matcher that verifies that the drawer (with gravity START) is open. Matches only when the drawer is fully open. Use isClosed instead of not(isOpen()) when you wish to check that the drawer is fully closed.

isOpen

java-static fun isOpen(gravity: Int): Matcher<View>!

Returns a matcher that verifies that the drawer with the specified gravity is open. Matches only when the drawer is fully open. Use isClosed instead of not(isOpen()) when you wish to check that the drawer is fully closed.