RTL的Andr​​oid语言环境。支持的语言环境时,如何只反映? [英] Android RTL locales. How to mirror only when locale is supported?

查看:132
本文介绍了RTL的Andr​​oid语言环境。支持的语言环境时,如何只反映?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个支持希伯来文,并宣布为RTL语言环境的明显支持的应用程序。不过,也有我不支持其他语言环境的RTL,并希望我的查看 S当这些语言环境设置为不被镜像。例如,我不希望我的应用程序的查看 s到从右换在阿拉伯语语言环境的时候离开,因为我不支持阿拉伯语,因此文本显示英文。

I have an app that supports Hebrew and declares in the manifest its support for RTL locales. However, there are other RTL locales that I do not support and would like my Views not to be mirrored when these locales are set. For example, I don't want my app's Views to be swapped from right to left when in the Arabic locale, since I don't support Arabic and therefore text will show in English.

推荐答案

您可以选择打开运行时镜像或关闭。请参见 http://stackoverflow.com/a/17683045/192373 。这是您的活动限制在4.2或更高,只有在的onCreate()。

You can choose to turn mirroring on or off at runtime. See http://stackoverflow.com/a/17683045/192373. This is limited to 4.2 or higher, and only in onCreate() of your activity.

这篇关于RTL的Andr​​oid语言环境。支持的语言环境时,如何只反映?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆