gpt4 book ai didi

android - android :supportsRtl ="true" in AndroidManifest xml file有什么用

转载 作者:IT老高 更新时间:2023-10-28 13:13:30 32 4
gpt4 key购买 nike

每当我在 android studio 中创建新项目时,我都会在我的应用 AndroidManifest 文件中获得 android:supportsRtl="true"

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
...
</application>

在应用中使用什么,或者在我的应用中添加或不添加 AndroidManifest 时有什么优点和缺点。

最佳答案

Declares whether your application is willing to support right-to-left (RTL) layouts. If set to true and targetSdkVersion is set to 17 or higher, various RTL APIs will be activated and used by the system so your app can display RTL layouts. If set to false or if targetSdkVersion is set to 16 or lower, the RTL APIs will be ignored or will have no effect and your app will behave the same regardless of the layout direction associated to the user's Locale choice (your layouts will always be left-to-right).

The default value of this attribute is false.

This attribute was added in API level 17.

(来源:http://developer.android.com/guide/topics/manifest/application-element.html)

关于android - android :supportsRtl ="true" in AndroidManifest xml file有什么用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34179179/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com