本文介绍了有没有办法使用minSdkVersion< 17的paddingEnd和paddingStart?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚发现API 17中有android:marginStartandroid:marginEndandroid:paddingStartandroid:paddingEnd.此​​边距和填充使用文本方向.是否可以使用此定义并为Android 2.2+构建应用程序?

I just have found there is android:marginStart, android:marginEnd, android:paddingStart and android:paddingEnd in API 17. This margins and paddings use text orientation. Is there way to use this definitions and build application for Android 2.2+ ?

推荐答案

有一种方法可以在Android 4.2以上版本的设备上使用从右到左语言的新支持,并同时支持较低的Android版本.有有关Android开发者的博客文章关于它.

There is way to use new support for Right To Left languages on devices with Android 4.2+ and support lower Android versions at same time. There is a blog article on Android Developers about it.

这篇关于有没有办法使用minSdkVersion< 17的paddingEnd和paddingStart?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 04:02