How to autoformat a text in Edit text to 00-0000-0000000-000 format in Android Kotlin?

103 Views Asked by At

How can I autoformat a text typed in Edit text to 00-0000-0000000-000 format? i.e. 2digits-4digits-7digits-(2/3)digits. The - should be added automatically while typing.

I am using normal Android EditText.

Can someone help ?

0

There are 0 best solutions below