{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
enum ViewMatchers.Visibility
Enumerates the possible list of values for getVisibility.
Public constructors |
|
|---|---|
Public functions |
|
|---|---|
java-static Any! |
forViewVisibility(view: View!)Get the |
java-static Any! |
forViewVisibility(visibility: Int)Get the |
val ViewMatchers.Visibility.INVISIBLE: ViewMatchers.Visibility
val ViewMatchers.Visibility.VISIBLE: ViewMatchers.Visibility
java-static fun forViewVisibility(view: View!): Any!
Get the Visibility enum for the current value in getVisibility.
| Parameters | |
|---|---|
view: View! |
The view to get the visibility value for. |
| Returns | |
|---|---|
Any! |
The current visibility enum value. |
| See also | |
|---|---|
forViewVisibility |
|
java-static fun forViewVisibility(visibility: Int): Any!
Get the Visibility for the given visibility int. Must be one of: VISIBLE, INVISIBLE, or GONE.
| Parameters | |
|---|---|
visibility: Int |
The visibility int to lookup. |
| Returns | |
|---|---|
Any! |
The matching |