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
使用gravity为editText
android:gravity="right"
将\\ u202D(LTR OVERRIDE)添加到字符串的开头就可以了
使用editText的方向
android:textDirection="ltr"
Add these to your EditText
:
android:gravity="left"
android:textDirection="ltr"
Note: android:textDirection
requires API level 17
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.