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

ViewMatchers.Visibility

public enum ViewMatchers.Visibility


Enumerates the possible list of values for View#getVisibility().

Summary

Enum Values

GONE
INVISIBLE
VISIBLE

Public constructors

Public methods

static ViewMatchers.Visibility
forViewVisibility(View view)

Get the Visibility enum for the current value in View#getVisibility().

static ViewMatchers.Visibility
forViewVisibility(int visibility)

Get the Visibility for the given visibility int.

int
static ViewMatchers.Visibility

Returns the enum constant of this type with the specified name.

static ViewMatchers.Visibility[]

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

Public constructors

Visibility

public Visibility()

Public methods

forViewVisibility

public static ViewMatchers.Visibility forViewVisibility(View view)

Get the Visibility enum for the current value in View#getVisibility().

Parameters
View view

The view to get the visibility value for.

Returns
ViewMatchers.Visibility

The current visibility enum value.

forViewVisibility

public static ViewMatchers.Visibility forViewVisibility(int visibility)

Get the Visibility for the given visibility int. Must be one of: VISIBLE, View#INVISIBLE, or View#GONE.

Parameters
int visibility

The visibility int to lookup.

Returns
ViewMatchers.Visibility

The matching Visibility enum.

getValue

public int getValue()

valueOf

public static ViewMatchers.Visibility valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Returns
ViewMatchers.Visibility

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

public static ViewMatchers.Visibility[] values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Returns
ViewMatchers.Visibility[]

an array containing the constants of this enum type, in the order they're declared