Girish Patel
Girish Patel

Reputation: 1275

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

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

Upvotes: 12

Views: 14114

Answers (4)

Abbas
Abbas

Reputation: 137

use this

android:textDirection="rtl"

android:gravity="right"

Upvotes: -1

Bacara
Bacara

Reputation: 7223

  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

Upvotes: 1

mbonnin
mbonnin

Reputation: 7022

It looks like this is only possible starting with jelly bean

Upvotes: 0

SERPRO
SERPRO

Reputation: 10067

Try with Bidi

Upvotes: 10

Related Questions