Mask::apply()
, theautocomplete
flag
This flag is now a part of the CaretGravity.FORWARD
.
CaretGravity
is now a sealed class
CaretGravity.FORWARD
, theautocomplete
flagCaretGravity.BACKWARD
, theautoskip
flag
CaretStringIterator::beforeCaret()
This method is now replaced with ::insertionAffectsCaret()
and ::deletionAffectsCaret()
calls.
CaretString
instances now contain caret gravity.
Caret gravity affects caret movement when Mask
adds characters precisely at the caret position during formatting. It is important to retain caret position after text deletion/backspacing.
Default CaretGravity
is .FORWARD
. Set caret gravity to .BACKWARD
only when user hits backspace.
CaretStringIterator::insertionAffectsCaret()
andCaretStringIterator::deletionAffectsCaret()
These methods allow to incorporate new caret gravity setting.
- Right-to-left masks.
AffinityCalculationStrategy.EXTRACTED_VALUE_CAPACITY
option allowing to have radically different mask format depending on the extracted value length
AffinityCalculationStrategy.CAPACITY
affinity calculation option allowing to have radically different mask format depending on the input length
formattedText
toMaskedTextChangedListener.ValueListener::onTextChanged
- by Nikita Barishok in PR#73
Mask::isValid(format:customNotations:)
method for format checks
- Optional blocks of symbols are now ignored when extracted value completeness is calculated, see #70