用于RTL布局的自动镜像在6.0以下的Android版本中不起作用 [英] Auto Mirroring for RTL layout doesn't work in Android versions below 6.0

本文介绍了用于RTL布局的自动镜像在6.0以下的Android版本中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您知道,Vector Drawables已添加到Android支持库23.2中,该库在 Android开发者博客,对于所有版本的android,我们都可以使用它,而无需添加其他大小不同的图标. 但是,为RTL布局启用自动镜像"选项在6.0以下的android版本中不起作用!还有其他设置可在其他android版本中使用吗?

As you know Vector Drawables was added in Android Support Library 23.2 which announced in Android Developer Blog that for all versions of android we can use it instead of adding extra icons in different sizes. However "enable auto mirroring for RTL layout" option doesn't work in android versions below 6.0! Is there any additional setting to use it in other android versions?

我的测试项目使用一种简单的方法来更改应用程序的语言环境. 这些是我测试的结果:

My Test Project uses a simple method to changing the Locale of my application. These are results of my test:

Nexus 6P与Android 6.0配合使用,效果很好:

Nexus 6P with Android 6.0 which works nice:

装有Android 5.0的Nexus 7:

Nexus 7 with Android 5.0:

谢谢

推荐答案

您可以使用create custom ImageView,如果波斯语旋转180.

you can use create custom ImageView and if persian rotate 180.

这篇关于用于RTL布局的自动镜像在6.0以下的Android版本中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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