Provide a dynamic mask generation to Android EditText.
- Declare InputMask view in your Layout interface and assign the mask attribute with your mask.
<org.dteodor.maskers.input.InputMask
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:mask="###.###.###-##"
android:id="@+id/inputMask"
/>
- Get the unmasked text.
inputMask.unmask() //Get unmasked text
inputMask.mask //Get mask