android supportsRtl介绍

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.        

声明你是否支持从右到左(right-to-left )的布局形式,如果设置true并且targetSdkVersion>=17,

各种各样的RTL apis将会起作用,你的app会展示PTL布局

如果设置false或者targetSdkVersion<17(安卓4.2),RTL apis将不在起作用,即使选择你的地区,不管怎么样,你的布局始终从左向右。

默认值是false。

这个属性在api17版本加入。

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容