descendantfocusability 不起作用
来源:互联网 发布:mox什么意思单片机中 编辑:程序博客网 时间:2024/06/06 01:15
针对设置了android:descendantFocusability=”blocksDescendants”后onItemClickListener还是不管用的问题
原因:由于在你自己定义的Item中存在自定义的控件(View)而且你Override了onTouchEvent方法并没有返回false,使得父View无法获得焦点。
解决方法:使onTouchEvent方法返回false,如果因为项目原因只能返回false,那就把那个自定义的View复制一份改个类名,并使其onTouchEvent方法返回false,亲测完美解决。
0 0
- descendantfocusability 不起作用
- descendantFocusability
- descendantFocusability
- android:descendantFocusability
- android:descendantFocusability
- android:descendantFocusability
- android:descendantfocusability
- android:descendantFocusability
- android:descendantFocusability
- android:descendantFocusability
- android:descendantFocusability
- android:descendantFocusability
- android:descendantFocusability属性
- android:descendantFocusability用法
- android:descendantFocusability用…
- android:descendantFocusability焦点
- android:descendantFocusability用法
- android descendantFocusability用法说明
- position:fix宽度在ie7不自适应,加上left:0px;
- 通过select的text来选中对应的option
- 原码、补码与反码
- windbg调试入门
- IOS中延时执行的几种方式的比较和汇总
- descendantfocusability 不起作用
- 获取JAVA文件路径(包括服务器环境文件路径)
- 链接详解
- ios【解决方法】You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE)
- Android提供的LruCache类简介
- 关于spring事务回滚的处理2、3事
- matlab程序移植到C(输出比较)
- 【noip2001】数的划分
- floyd算法原理