
起初我以为当我将系统语言改为阿拉伯语时,drawableStart会自动更改图标的位置,这是一种从右到左书写的语言.但是当我这样做时,什么也没发生.
所以我猜他们是一样的?
解决方法:
我不确定上面的答案是否正确.从我的实验中,除非您更改语言并启用RTL支持,否则图标始终位于同一位置.
drawableStart和drawableEnd仅在API级别17及更高级别的enable RTL support时开始切换侧面.
总结Change all of your app’s “left/right” layout propertIEs to new
“start/end” equivalents.If you are targeting your app to AndroID 4.2 (the app’s targetSdkVersion or minSdkVersion is 17 or higher), then you should
use “start” and “end” instead of “left” and “right”. For example,
androID:paddingleft should become androID:paddingStart.If you want your app to work with versions earlIEr than AndroID 4.2 (the app’s targetSdkVersion or minSdkVersion is 16 or less), then you
should add “start” and end” in addition to “left” and “right”. For
example, you’d use both androID:paddingleft and androID:paddingStart.
以上是内存溢出为你收集整理的android – EditText中drawableLeft和drawableStart之间的区别是什么?全部内容,希望文章能够帮你解决android – EditText中drawableLeft和drawableStart之间的区别是什么?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)