12

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

Girish Patel
  • 1,270
  • 4
  • 16
  • 30

4 Answers4

10

Try with Bidi

SERPRO
  • 10,015
  • 8
  • 46
  • 63
1
  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

Bacara
  • 6,903
  • 1
  • 20
  • 21
0

It looks like this is only possible starting with jelly bean

mbonnin
  • 6,893
  • 3
  • 39
  • 55
  • 1
    More specifically Android 4.2. RTL support in 4.1 is quite limited. See [this blog entry](http://android-developers.blogspot.co.il/2013/03/native-rtl-support-in-android-42.html) for details. – Ted Hopp Sep 03 '13 at 15:02
  • the BidiFormatter APIs are also now available for earlier platform versions through the Support Package in the Android SDK. – Alex Cohn Sep 12 '13 at 13:41
-1

use this

android:textDirection="rtl"

android:gravity="right"

Abbas
  • 117
  • 10
  • 2
    While this does provide an answer to the question, you don't explain what it does, why it does it, or really anything for that matter. Especially because this question is more than 3 years old, it would be good to have a more complete, up-to-date answer for newer versions of Android. – Jon Egeland May 02 '15 at 03:54