listview的单选
来源:互联网 发布:布谷鸟算法 编辑:程序博客网 时间:2024/05/17 22:48
在adapter中加入下面的代码
private int selectItem = -1;public void setSelectItem(int selectItem) { this.selectItem = selectItem;}
selectItem表示的是当前点击的是哪个位置
在listview的点击事件中调用这个方法
adapter.setSelectItem(position);
阅读全文
0 0
- listview的单选
- ListView的单选模式
- ListView 的单选模式
- CheckedTextView实现ListView的单选效果
- Android 创建单选的listview
- ListView单选的实现总结
- android listview的单选事件
- ListView与RadioButton的结合单选
- Listview实现简单的单选功能
- Android实现listView的单选功能
- listview实现单选
- listview 单选
- 单选 +listview
- Listview 单选
- ListView中的单选
- 设置Listview单选
- ListView 单选效果
- 自定义单选ListView
- LinkedList源码分析
- Hadoop之Hive
- 每天回顾linux命令(date)
- 树的遍历
- 操作系统安装
- listview的单选
- 不用加减乘除做加法
- PrintWriter 返回前端中文乱码
- 【云隐】windows下编译及使用libevent
- CSS3瀑布流
- Docker获取镜像报错 docker: Error response from daemon: unauthorized: incorrect username or password.
- HashMap源码分析
- 使用Collections.sort(List<T>,Comparator<T>)给List<String>排序(一)
- Spring Boot Jar 做为Linux服务启动项