public class BindingAdapters
extends java.lang.Object
Constructor and Description |
---|
BindingAdapters() |
Modifier and Type | Method and Description |
---|---|
static void |
enabled(android.widget.ImageView view,
boolean enable)
Set enabled state and show greyed out when disabled
|
static void |
onFocusChange(android.widget.EditText text,
android.view.View.OnFocusChangeListener listener)
FocusChange event on a EditText
|
static void |
showHide(android.view.View view,
boolean show)
Show or hide a view
|
static void |
tintAccent(android.widget.ImageView view,
boolean isTrue)
Tint the view with the accent color
|
static void |
tintFav(android.widget.CheckBox checkBox,
boolean state)
Tint the fav
|
static void |
tintPrimary(android.widget.ImageView view,
boolean noReverse)
Tint the view with the primary color
|
public static void showHide(android.view.View view, boolean show)
view
- The viewshow
- The statepublic static void enabled(android.widget.ImageView view, boolean enable)
view
- The viewenable
- The statepublic static void onFocusChange(android.widget.EditText text, android.view.View.OnFocusChangeListener listener)
text
- The EditTextlistener
- The listenerpublic static void tintAccent(android.widget.ImageView view, boolean isTrue)
view
- The viewisTrue
- tint if truepublic static void tintPrimary(android.widget.ImageView view, boolean noReverse)
view
- The viewnoReverse
- revese color if truepublic static void tintFav(android.widget.CheckBox checkBox, boolean state)
checkBox
- The viewstate
- Checkbox state