<GridView android:id="@+id/g_table" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="@dimen/y60" android:gravity="center" android:listSelector="@drawable/gridview_select" android:horizontalSpacing="@dimen/x10" android:numColumns="3" android:scrollbars="none" android:verticalSpacing="@dimen/y60" > </GridView>
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@color/backgroun_color" android:state_pressed="false"/> <item android:drawable="@color/line_color"/> </selector>
GridView 修改点击时候的背景颜色 可改为自定义颜色
扫码支持一下 谢谢