gridview and listview
来源:互联网 发布:微信网络推广策划 编辑:程序博客网 时间:2024/05/20 11:23
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" 0 0
- gridview and listview
- GridView, ListView
- Can a GridView have a footer and header just like ListView?
- How To Use the Windows Phone 8.1 GridView and ListView Controls
- GridView、ListView、Repeater使用方法
- 自定义GridView/ListView数据源
- ListView实现GridView
- ListView 与GridView
- Android GridView/ListView数据源
- android GridView,Gallery,ListView
- ListView与GridView优化
- ListView嵌套GridView
- 自定义ListView和GridView
- Android--GridView/ListView…
- ScrollView ListView GridView
- ListView和GridView
- ListView、GridView的使用
- android GridView,Gallery,ListView
- 几个有用的python脚本
- JAVA环境配置
- 单链表的操作(练习)
- 控制器管理
- Mosquitto support websocket
- gridview and listview
- Tomcat 一闪而过
- 一个加密解密的小工具
- SQLite数据库创建、更新入门
- 如何对配置eclipse,让他能够用来开发Android
- VC++关键字-"__declspec"
- 课程设计 广度优先探索—迷宫问题
- TDTC Demo - Github
- 使用LINQ to Entities查询:使用函数