Modifier and Type | Field and Description |
---|---|
(package private) Pattern |
mPattern |
(package private) Pattern |
nPattern |
Constructor and Description |
---|
DecimalDigitsInputFilter(int digitsBeforeZero,
int digitsAfterZero)
Actual regex formula.
|
Modifier and Type | Method and Description |
---|---|
CharSequence |
filter(CharSequence source,
int start,
int end,
android.text.Spanned dest,
int dstart,
int dend)
Filter to check for a correct pattern after the initial regex.
|
public DecimalDigitsInputFilter(int digitsBeforeZero, int digitsAfterZero)
digitsBeforeZero
- digit quantity able to be put before the dot.digitsAfterZero
- digit quantity able to be put after the dot.public CharSequence filter(CharSequence source, int start, int end, android.text.Spanned dest, int dstart, int dend)
filter
in interface android.text.InputFilter
source
- initial char sequence.start
- start of the sequence.end
- enf of the sequence.dest
- destinydstart
- destiny startdend
- destiny end