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 回答1: use gravity for the editText android:gravity="right" 回答2: Adding \u202D (LTR OVERRIDE) to the beginning of the string does the trick 回答3: use direction for the editText android:textDirection="ltr" 回答4: Add these to your EditText : android:gravity="left" android:textDirection="ltr" Note: android:textDirection requires