重写下button,覆盖ontouchevent方法,自己实现selector,并且看情况截掉触摸事件
解决方案 »
- android 源码下载 问题,求大神
- 怎么得到一个数组中指定的字符串?
- setCanceledOnTouchOutside ( true)菜鸟救救求解决
- 后缀为.bm的文件怎样打开?
- 请问google怎么通过Android挣钱?
- 求ExpandableListView拖拽的例子~~急
- 请教诸位android模拟器下开发游戏大概在多少帧运行
- android 如何设置 android:layout_width常量
- 探讨一下A20启动 串口打印信息
- Android空指针异常问题,新手求教
- ? - RemoteViews使用PendingIntent建多个appwidget问题
- 菜鸟求救: E/Trace(7584): error opening trace file: No such file or directory (2)
会
我觉得 在item配置里面 还是少用点Button这些。要用这些就需要设置item不能获得焦点
你可以 使用CheckTextView来代替Button这些 要获的焦点的控件
CheckTextView是不抢焦点了但是他的Selector还是被触发了
android:cacheColorHint="#00000000"
/>