fragment中listview的onitemclicklistener
2016-04-28 11:14
176 查看
Android的fragment中listview要对每个item实现点击事件,但是onitemclicklistener方法不起作用,后来查找资料发现应该在item的根layout中设置一下属性
android:descendantFocusability="blocksDescendants",你会发现item的点击事件可以用了
相关文章推荐
- 对 Linux 新手非常有用的 20 个命令
- unity多渠道sdk打包.
- android view getLeft(), getRight(), getTop(), getBottom()等相对位置 与getGlobalVisibleRect(Rect r)等绝对位置
- MySQL基本命令和操作
- TCP连接异常断开检测
- 多种Spring.jar详解
- Android实现WebView删除缓存的方法
- Cloud Insight支持阿里云一键接入了,so what?
- hdu-4526-威威猫系列故事——拼车记-DP
- SVN各种图标总结
- Android蓝牙4.0API-类-BluetoothGattCharacteristic
- 深入了解RunLoop
- 通过SimpleDateFormat获取相关时间日期信息
- 倒排索引/布尔检索
- php之自定义session存储机制【3】
- 设计网址推荐(持续更新中)
- 安卓使用SQLite数据库(创建、增删改查)
- iOS swift 使用基本语法
- Iptables之FORWARD转发链
- Android总结篇——Intent机制详解及示例总结