【发布时间】:2015-11-25 09:41:52
【问题描述】:
这是我尝试使用android:listSelector="@null"的网格视图布局
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#191919">
<GridView
android:id="@+id/gridView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:columnWidth="100dp"
android:drawSelectorOnTop="true"
android:gravity="center"
android:numColumns="auto_fit"
android:stretchMode="columnWidth"
android:verticalSpacing="5dp"
android:focusable="true"
android:clickable="true"
android:listSelector="@null"/>
</RelativeLayout>
但我无法摆脱网格视图中的这些黑色边框
【问题讨论】:
-
黑色是gridview的颜色
-
但是当我向上或向下滚动时,黑色边框与绿色重叠
-
请发布您的包含gridlayout的xml布局
-
@PhanVănLinh 好的,谢谢,你基本上帮我弄清楚了。
标签: android