Android EditText android: textDirection

I want EditText to always be LTR, how do I do this? android: textDirection really seems to be the answer, I can't get the project to compile with this directive

+6
source share
4 answers

Adding \ u202D (LTR OVERRIDE) to the beginning of the line does the trick

0
source

use gravity for editText

android:gravity="right" 
+5
source

use direction for editText

 android:textDirection="ltr" 
0
source

Add them to your EditText :

 android:gravity="left" android:textDirection="ltr" 

Note: android:textDirection requires API level 17

0
source

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


All Articles