ViewMatchers.Visibility

public enum ViewMatchers.Visibility


Enumerates the possible list of values for getVisibility.

Summary

Enum Values

GONE
INVISIBLE
VISIBLE

Public fields

final int

Public methods

static ViewMatchers.Visibility

Get the Visibility enum for the current value in 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.

Public fields

value

public final int value

Public methods

forViewVisibility

public static ViewMatchers.Visibility forViewVisibility(View view)

Get the Visibility enum for the current value in 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, INVISIBLE, or 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