GridView修改点击时候的背景颜色
<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 修改点击时候的背景颜色 可改为自定义颜色
扫码支持一下 谢谢
相关推荐
chenjinlong 2020-01-29
vickyjfr 2013-08-27
luoj 2011-08-17
huohu00 2015-04-22
omguare 2012-05-07
SuperMenyII 2019-06-26
AngelicaA 2011-05-02
AABBbaby 2018-07-27
DrZOU 2017-12-21
wuqiong 2017-04-10
Lzn0 2017-03-27
fengyeezju 2015-12-25
superxlcr 2015-05-27
rookieding 2015-04-22
familynt 2015-04-06
mishaki 2015-02-13
江南以北 2014-12-28
yarkey0 2014-10-22