Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android EditText android:textDirection

I'd like to set an EditText to be LTR at all times, how do I do that? android:textDirection does seem to be the answer, i cant get the project to compile with that directive

like image 997
Aviran Avatar asked Oct 06 '12 20:10

Aviran


2 Answers

use gravity for the editText

android:gravity="right"
like image 95
JafarKhQ Avatar answered Sep 27 '22 16:09

JafarKhQ


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

like image 35
Aviran Avatar answered Sep 27 '22 17:09

Aviran