public class MaskedEditText
extends AppCompatEditText
implements android.text.TextWatcher
| Modifier and Type | Field and Description |
|---|---|
protected int |
maxRawLength |
static java.lang.String |
SPACE |
| Constructor and Description |
|---|
MaskedEditText(android.content.Context context) |
MaskedEditText(android.content.Context context,
android.util.AttributeSet attrs) |
MaskedEditText(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterTextChanged(android.text.Editable s) |
void |
beforeTextChanged(java.lang.CharSequence s,
int start,
int count,
int after) |
char |
getCharRepresentation() |
java.lang.String |
getMask() |
java.lang.String |
getRawText() |
boolean |
isKeepHint() |
void |
onRestoreInstanceState(android.os.Parcelable state) |
android.os.Parcelable |
onSaveInstanceState() |
protected void |
onSelectionChanged(int selStart,
int selEnd) |
void |
onTextChanged(java.lang.CharSequence s,
int start,
int before,
int count) |
void |
setCharRepresentation(char charRepresentation) |
void |
setKeepHint(boolean keepHint) |
void |
setMask(java.lang.String mask) |
void |
setOnFocusChangeListener(OnFocusChangeListener listener) |
void |
setText(java.lang.CharSequence text,
BufferType type) |
public static final java.lang.String SPACE
protected int maxRawLength
public MaskedEditText(android.content.Context context)
public MaskedEditText(android.content.Context context,
android.util.AttributeSet attrs)
public MaskedEditText(android.content.Context context,
android.util.AttributeSet attrs,
int defStyle)
public android.os.Parcelable onSaveInstanceState()
public void onRestoreInstanceState(android.os.Parcelable state)
public void setText(java.lang.CharSequence text,
BufferType type)
public void setOnFocusChangeListener(OnFocusChangeListener listener)
listener - - its onFocusChange() method will be called before performing MaskedEditText operations,
related to this event.public void setMask(java.lang.String mask)
public java.lang.String getMask()
public java.lang.String getRawText()
public void setCharRepresentation(char charRepresentation)
public char getCharRepresentation()
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 s)
afterTextChanged in interface android.text.TextWatcherpublic boolean isKeepHint()
public void setKeepHint(boolean keepHint)
protected void onSelectionChanged(int selStart,
int selEnd)