2

I found it hard to find much information online about RTL languages support in Android. In versions above 4.2 everything seems to be working perfectly fine. But when I switch to older version I can't make the screen to be with right-to-left orientation.

What I mean is that the TextView that are set to stay left, stay left, etc. I followed the instructions from this link: http://android-developers.blogspot.com/2013/03/native-rtl-support-in-android-42.html

All the things that are written here doesn't work on pre-4.2 Android. So is it even possible to make your screen orientation from right to left on this versions or was this option only added in 4.2 and for older versions if you want reversed layout you should write it yourself.

4

1 回答 1

1

如果你想使用阿拉伯语或波斯语,你可以使用 PersianReshape 类:

下载此文件并将其放入您的项目中(它是一个 Java 文件):

http://file.and-share.ir/uploads/and-roid.ir1374338060741.zip

用法是这样的:

在此处输入图像描述

于 2013-11-07T13:39:09.480 回答