Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTL layout wrong direction for pin code #51

Open
malhobayyeb opened this issue Jan 9, 2019 · 1 comment
Open

RTL layout wrong direction for pin code #51

malhobayyeb opened this issue Jan 9, 2019 · 1 comment

Comments

@malhobayyeb
Copy link

In Arabic (which is a RTL language) numbers are always entered from left to right just like LTR lanuages.

However, this library sets the direction of pin entry from right to left.

So, if pin is 0234

Expected-LTR:
0 2 3 4

Expected-RTL: (Same as LTR)
0 2 3 4

Actual-LTR:
0 2 3 4

Actual-RTL: (Big Mistake)
4 3 2 0

Please make them the same or make it customizable.

Currently you are using:

Locale.getDefault()

Why not use a custom attribute and give it higher priority than the Locale.getDefault()

@WajdyEssam
Copy link

This is resolved on the last update of the library, you could use
android:layoutDirection="ltr"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants