Is there a way to prefill aTextInputEditText with fixed characters?

65 Views Asked by At

For example, if my TextInputEditText is a date.

Can I prefill the field with "-" like that " - - " so the users just have to type mmddyyyy to get mm-dd-yyyy ?

This is just an example, I need other patterns too, so it would be nice if I can create custom ones.

I'm not talking about hints, the "-" must stay.

I tried inputType but it just changes the keyboard.

I guess I could just break my fields like " "-" "-" " but I'm expecting a better way to do it.

0

There are 0 best solutions below