转载请注明出处:
http://blog.csdn.net/aa464971/article/details/68948616
我最初是设置了一个颜色,别的机器能够显示, 但是在小米没有效果
android:divider="@color/color_divider"
android:dividerPadding="1dp"
后来换成shape就可以了
android:divider="@drawable/divider"
divider.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/color_divider" />
<size android:height="1dp" />
</shape>
最后
以上就是悲凉裙子最近收集整理的关于LinearLayout的showDividers在小米上不管用的解决办法的全部内容,更多相关LinearLayout内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复