how to write text right to left (Arabic Text)in Android ?

早过忘川 提交于 2019-11-27 06:42:07

问题


I used Arabic text so, I want to write text from right to left so how i can write right to left text in android ?

Regards, Girish


回答1:


Try with Bidi




回答2:


  1. Declare in your app manifest that your app supports RTL mirroring: add android:supportsRtl="true" to the element in your manifest file.
  2. Change all of your app's "left/right" layout properties to new "start/end" equivalents.

Native RTL support in Android 4.2




回答3:


It looks like this is only possible starting with jelly bean




回答4:


use this

android:textDirection="rtl"

android:gravity="right"



来源:https://stackoverflow.com/questions/7874125/how-to-write-text-right-to-left-arabic-textin-android

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