{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
enum ViewMatchers.Visibility
Enumerates the possible list of values for getVisibility.
Public fields |
|
|---|---|
final int |
|
Public constructors |
|
|---|---|
Public methods |
|
|---|---|
static Object |
forViewVisibility(View view)Get the |
static Object |
forViewVisibility(int visibility)Get the |
int |
getValue() |
public static Object 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 | |
|---|---|
Object |
The current visibility enum value. |
| See also | |
|---|---|
forViewVisibility |
|
public static Object 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 | |
|---|---|
Object |
The matching |