Android:android:listSelector="#00000000" 与 android:listSelector="@null"之区别
当用gridview或者ListView控件时,会用到设置android:listSelectors属性,例如下:
<com.xhmj.main.active.MyGridView android:gravity="center" android:id="@+id/channels_gridview" android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:listSelector="@null" android:cacheColorHint="#00000000" android:horizontalSpacing="2.0dip" android:verticalSpacing="2.0dip" android:numColumns="3" android:drawSelectorOnTop="false" android:stretchMode="columnWidth"/>若设置成如上所示时,点击该gridview中的某个item时,会显示橘黄色的显示背景(android系统默认设置颜色),若想设置点击时无色(透明色,不用系统背景色),并设置自己的点击效果,只需将上述设置成:android:listSelector="#00000000"
Android:android:listSelector="#00000000" 与 android:listSelector="@null"之区别,布布扣,bubuko.com
Android:android:listSelector="#00000000" 与 android:listSelector="@null"之区别