如果ListView中的单个Item的view中存在checkbox,button等view,会导致ListView.setOnItemClickListener无效

解决方法:

在checkbox、button的属性中加android:focusable="false"
android:clickable="false" android:focusableInTouchMode="false"

其中focusable是关键

更多相关文章

  1. 如何动态的设置Relative Layout中按钮的layout_align_parent_rig
  2. Android(安卓)EditText左右滑动
  3. Android系统属性SystemProperties分析
  4. android布局layout中的一些属性
  5. activity属性设置大全
  6. Android之ListView中的分割线
  7. Android(安卓)Listview 隐藏滚动条
  8. Android项目---listview的那些属性,常用却不常见
  9. EditText失去焦点时收起软键盘

随机推荐

  1. flex 4.5 开发android 的文章
  2. Android 屏幕方向以及UI界面状态的保存
  3. Android多语言与国际化
  4. cocos2dx 3.0 scrollview 在android下面
  5. Android的DDMS使用详细说明(Android DDMS
  6. Android(安卓)移动开发TIPS小结4
  7. 线性布局(LinearLayout)下layout_weight
  8. Android 软件更新安装时报错:FileUriExpos
  9. 阿里巴巴Android(安卓)技术规范文档知识
  10. 整理 酷炫 Android(安卓)开源UI框架 Sear