AsymmetricGridView改变垂直分隔线的颜色

时间:2014-07-30 10:41:08

标签: gridview colors spacing divider

我正在使用AsymmetricGridView lib,我正在努力改变垂直分隔线的颜色。

我的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"/>

但是这个分频器属性仅适用于水平分频器。垂直的那些保持白色。

我的目标是让它们透明,以便在背景中看到图像。

提前致谢!!

1 个答案:

答案 0 :(得分:1)

我有正确的答案。请将item_divider_horizo​​ntal.xml和item_divider_vertical.xml文件复制到项目的可绘制文件夹中。并且请更改xml文件中的颜色。 您可以在此链接中找到以下文件: https://github.com/felipecsl/AsymmetricGridView/tree/master/library/src/main/res/drawable

相关问题