How to make my edit text type right to left ?

女生的网名这么多〃 提交于 2019-11-29 18:11:59

Use a Bidi object to get the information on the position reordering of a bidirectional text, such as Arabic or Hebrew. The natural display ordering of horizontal text in these languages is from right to left, while they order numbers from left to right.

Read the below document :-

http://developer.android.com/reference/java/text/Bidi.html

or

android:textDirection="anyRtl"

http://android-developers.blogspot.in/2013/03/native-rtl-support-in-android-42.html

If the locale of the phone is set to a right to left language, it will do this automatically. At least for all phones 4.0 and higher. Before then there was actually a special patch to the framework that provided that feature that was applied to all phones going to RTL regions, which means it would work on 2.3 phones from those areas, but not on phones without the patch. Of course this means phones without that patch just won't work and there's no real way to fake it, since AFAIK there's no way to tell if the phone has the patch or not.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!