捡来的笔记

LinearLayout的showDividers在小米上不管用的解决办法

转载请注明出处:
http://dyhdyh.com/archives/241.html

我最初是设置了一个颜色,别的机器能够显示, 但是在小米没有效 We choose only best online bingo sites for you to play at and and get the maximum pleasure on Are Still Popular. ���������������� ������.

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>

 

点赞

发表评论