Android RTL Password Fields

I tried everything in this post: Android RTL Password Fields?

But nothing helped me.

Problem . When the user language is Arabic (RTL), I want it to feel comfortable typing my password in my language. But, when I assign inputTypeto textPassword, it does not work and forces it to LTR no matter what I assign.

I tried to assign gravity, textAlignment, layoutDirectionand I even tried this software, but nothing works.

All other text fields work fine except for PASSWORD. Is there a workaround for this error / problem?

+4
source share
3 answers

, . ( UserName). , . , ASCII, , . , , . Windows Login .

. ( ... , , , ... ..), , ... 90-, . , , "" LTR, .

, ( , , , ):

<p align="right">******</p>
<p align="left">******</p>

+6

(LTR) (RTL) (, ), Edittext XML:

android:inputType="textPassword"
android:textAlignment="viewStart"
+1

Have you tried the following ?:

XML:

android:ellipsize="end"

Java:

textview.setTextDirection(View.TEXT_DIRECTION_RTL);

or

textview.setTextDirection(View.TEXT_DIRECTION_ANY_RTL);
0
source

Source: https://habr.com/ru/post/1649964/


All Articles