我正在使用AsymmetricGridView库,并且正在努力更改垂直分隔线的颜色。
我的XML:
<com.felipecsl.asymmetricgridview.library.widget.AsymmetricGridView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/listView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#000"
android:divider="@drawable/divider"
android:dividerHeight="5dp"/>
但是此分隔线属性仅适用于水平分隔线。垂直的保持白色。
我的目标是使它们透明以在背景中查看图像。
谢谢!!
我有正确的答案。请将item_divider_horizontal.xml和item_divider_vertical.xml文件复制到项目的可绘制文件夹中。并且请更改xml文件中的颜色。您可以在此链接中找到这些文件:https://github.com/felipecsl/AsymmetricGridView/tree/master/library/src/main/res/drawable