android AndroidManifenst.xml中supportsRtl的用法
来源:互联网 发布:linux下装oracle 11g 编辑:程序博客网 时间:2024/06/05 19:51
来自博主:http://blog.csdn.net/forlong401/article/details/50284301
android4.2(SDK版本为17)有一个新特性 layoutRtl,当然是对于开发者而言的,主要是方便开发者去支持阿拉伯语/波斯语等阅读习惯是从右往左的。 可以在manifest的application标签添加:android:supportsRtl 取值:true/false
这样就可以打开layoutRtl这个功能。如果当前系统语言是阿拉伯语/波斯语,打开了这个功能的应用的布局就会自动变成从右往左的,当然前提是布局没有写死控件间的位置。 由于布局方向可以是从右到左的,所以在写xml布局的时候,为了防止出现布局混乱的现象,不要使用诸如layout_marginRight这种,而应该是layout_marginEnd这种。
如果布局变成了从右往左的话,焦点的移动也会有一些变化。EditText有一个标签是用来让输入法提供类似“next”的按钮的:imeoptions=“actionNext”。你按“next”的时候会发现,本来应该往右/下移动的光标,变成往左/上移动。
0 0
- android AndroidManifenst.xml中supportsRtl的用法
- Android AndroidManifest.xml文件的android:supportsRtl属性详解
- Android AndroidManifest.xml文件的android:supportsRtl属性详解
- Android AndroidManifest.xml文件的android:supportsRtl属性详解
- Android AndroidManifest.xml文件的android:supportsRtl属性详解
- Android AndroidManifest.xml文件的android:supportsRtl属性详解
- Android AndroidManifest.xml文件的android:supportsRtl属性详解
- Android AndroidManifest.xml文件的android:supportsRtl属性详解
- Android AndroidManifest.xml文件的android:supportsRtl属性详解
- Android AndroidManifest.xml文件的android:supportsRtl属性详解
- AndroidManifest.xml文件的android:supportsRtl属性详解
- Android的manifest中Application属性supportsRtl的作用
- 如何使用android:supportsRtl
- android supportsRtl属性
- android中string.xml文件的用法
- android中XmlPullParse解析xml的用法
- Android日记-2017.5.11-supportsRtl
- android的xml文件中@和?的用法
- mock片断2 使用powermock针对private或static写单元测试
- Linux下Redis开机自启(Centos)
- Android消息处理流程(handler)
- CSDN-markdown编辑器使用方式介绍
- Jan's LightOJ :: Problem 1045 - Digits of Factorial
- android AndroidManifenst.xml中supportsRtl的用法
- CentOS下面定时删除N天前的文件
- 生于忧患而死于安乐:程序员如何走出自己的安逸环境
- qtreewidgetitem选中背景颜色解决
- 理解JavaScript中的作用域和上下文
- 1282 - Leading and Trailing
- HTTP协议头
- [树链剖分 线段树] BZOJ 4127 Abs
- iOS 时间 相关知识