public abstract class ViewUtils.SettingsTextWatcher
extends java.lang.Object
TextWatcher
adapter class bound to a View
Modifier and Type | Field and Description |
---|---|
protected View |
view |
Constructor and Description |
---|
SettingsTextWatcher(View view) |
Modifier and Type | Method and Description |
---|---|
void |
afterTextChanged(Editable s) |
void |
beforeTextChanged(java.lang.CharSequence s,
int start,
int count,
int after) |
abstract void |
onSettingChanged(java.lang.String text)
Called iff the text was changed and validation was successful.
|
void |
onTextChanged(java.lang.CharSequence s,
int start,
int before,
int count) |
protected abstract boolean |
validate(java.lang.String val) |
public void afterTextChanged(Editable s)
public abstract void onSettingChanged(java.lang.String text)
text
- the new textprotected abstract boolean validate(java.lang.String val)
val
- the current edittext's statepublic void beforeTextChanged(java.lang.CharSequence s, int start, int count, int after)
public void onTextChanged(java.lang.CharSequence s, int start, int before, int count)