expandableListView的divider该溶液显示在黑色

it2025-09-03  33

黑色是divider高度。如何让他成为透明的啊? 布局例如以下:    <ExpandableListView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="15dip" android:layout_marginTop="15dip" android:cacheColorHint="#00000000" android:fadingEdge="none" android:divider="#00000000" android:dividerHeight="15dip" android:listSelector="#00000000" />

注意一定要把divider设置为  

android:divider="@null"

假设还是不能够。就使用下面方法:

解决的方法是:把全部0x00000000都改成@null试试。为了以防万一。我自己的方法是凡是用到颜色值的物是人非@null该,通过实验。这种方法是可行。

版权声明:本文博客原创文章。博客,未经同意,不得转载。

转载于:https://www.cnblogs.com/bhlsheji/p/4613838.html

相关资源:Android ScrollView嵌套ExpandableListView显示不正常的问题的解决办法
最新回复(0)