public static class MoneyUtils.MoneyWatcher
extends java.lang.Object
implements android.text.TextWatcher
| Modifier and Type | Field and Description |
|---|---|
protected android.widget.EditText |
editText |
| Constructor and Description |
|---|
MoneyWatcher(android.widget.EditText editText) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterTextChanged(android.text.Editable editable) |
void |
beforeTextChanged(java.lang.CharSequence s,
int start,
int count,
int after) |
void |
onTextChanged(java.lang.CharSequence s,
int start,
int before,
int count) |
void |
setLengthLimit(int lengthLimit)
Sets length limit and updates regex pattern for validation.
9 is suggested for RUB, 7 is suggested for other currencies.
|
public void beforeTextChanged(java.lang.CharSequence s,
int start,
int count,
int after)
beforeTextChanged in interface android.text.TextWatcherpublic void onTextChanged(java.lang.CharSequence s,
int start,
int before,
int count)
onTextChanged in interface android.text.TextWatcherpublic void afterTextChanged(android.text.Editable editable)
afterTextChanged in interface android.text.TextWatcherpublic void setLengthLimit(int lengthLimit)
lengthLimit - the length limit.