Skip to content

2.2 Right to Left & Digit Grouping

Egor Taflanidi edited this page Sep 18, 2019 · 1 revision

The MaskedTextChangedListener has a built-in support for right-to-left text alignment, and there's a rightToLeft property for it.

As a side effect, this setting allows using masks for digit grouping.

1
12
123
1 234
12 345

For instance, given you have RTL enabled, with a mask like this:

[000] [000] [000] EUR

— you'll have an output like this:

1 EUR
12 EUR
123 EUR
1 234 EUR
12 345 EUR