edittext-mask
edittext-mask copied to clipboard
Support for multi line
Apply mask on the each line:
<br.com.sapereaude.maskedEditText.MaskedEditText xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/multi_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="1234567890"
android:inputType="textMultiLine|number"
android:minLines="4"
android:maxLines="4"
android:lines="4"
android:typeface="monospace"
app:keep_hint="true"
mask:allowed_chars="1234567890"
mask:mask="##,##,##,##,##,##" />
Hm. Interesting moment. You can try to make a pull-request - I'll have a look. But I'm not sure that it will not destroy all the code. If you could try it - would be nice. I'm also not sure that it's the way people use this library for, so it's in a very low priority.
The most quick work around for you - is just to make a ListView/RecyclerView of such controls. When IMEI Action.DONE is performed, you need to add another element to the list. Currently, you can't hook/handle with Action.DONE
, but the Github repository already has the fix to this issue, so you could proceed with this solution.