public final class ViewActions
extends java.lang.Object
Action
interfaces for use with views.Modifier and Type | Method and Description |
---|---|
static rx.functions.Action1<? super java.lang.Boolean> |
setActivated(android.view.View view)
Create an action which controls the supplied view's
activated property.
|
static rx.functions.Action1<? super java.lang.Boolean> |
setClickable(android.view.View view)
Create an action which controls the supplied view's
clickable property.
|
static rx.functions.Action1<? super java.lang.Boolean> |
setEnabled(android.view.View view)
Create an action which controls the supplied view's
enabled property.
|
static rx.functions.Action1<? super java.lang.Boolean> |
setFocusable(android.view.View view)
Create an action which controls the supplied view's
focusable property.
|
static rx.functions.Action1<? super java.lang.Boolean> |
setSelected(android.view.View view)
Create an action which controls the supplied view's
selected property.
|
static rx.functions.Action1<? super java.lang.CharSequence> |
setText(android.widget.TextView textView)
Create an action which controls the supplied view's
text property.
|
static rx.functions.Action1<? super java.lang.Integer> |
setTextResource(android.widget.TextView textView)
Create an action which controls the supplied view's
text property.
|
static rx.functions.Action1<? super java.lang.Boolean> |
setVisibility(android.view.View view)
Create an action which controls the supplied view's
visibility property.
|
static rx.functions.Action1<? super java.lang.Boolean> |
setVisibility(android.view.View view,
int visibilityOnFalse)
Create an action which controls the supplied view's
visibility property.
|
public static rx.functions.Action1<? super java.lang.Boolean> setEnabled(android.view.View view)
Note: the created action will not keep a strong reference to the view.
public static rx.functions.Action1<? super java.lang.Boolean> setActivated(android.view.View view)
Note: the created action will not keep a strong reference to the view.
public static rx.functions.Action1<? super java.lang.Boolean> setClickable(android.view.View view)
Note: the created action will not keep a strong reference to the view.
public static rx.functions.Action1<? super java.lang.Boolean> setFocusable(android.view.View view)
Note: the created action will not keep a strong reference to the view.
public static rx.functions.Action1<? super java.lang.Boolean> setSelected(android.view.View view)
Note: the created action will not keep a strong reference to the view.
public static rx.functions.Action1<? super java.lang.Boolean> setVisibility(android.view.View view)
true
values are mapped to
View.VISIBLE
and false
values to View.GONE
.
Note: the created action will not keep a strong reference to the view.
setVisibility(View, int)
public static rx.functions.Action1<? super java.lang.Boolean> setVisibility(android.view.View view, int visibilityOnFalse)
true
values are mapped to
View.VISIBLE
and false
values to the supplied visibility.
Note: the created action will not keep a strong reference to the view.
visibilityOnFalse
- View.INVISIBLE
or View.GONE
.setVisibility(View, int)
public static rx.functions.Action1<? super java.lang.CharSequence> setText(android.widget.TextView textView)
Note: the created action will not keep a strong reference to the view.
setTextResource(android.widget.TextView)
public static rx.functions.Action1<? super java.lang.Integer> setTextResource(android.widget.TextView textView)
Note: the created action will not keep a strong reference to the view.
setText(android.widget.TextView)