解决方法:

1.在LinearLayout的属性增加 android:descendantFocusability="blocksDescendants"

2.将button换成imageview,在imageview的属性增加android:focusable="false"

更多相关文章

  1. ListView滚动条问题
  2. Android控件属性大全
  3. Android控件属性大全
  4. 解决android TextView多行文本(超过3行)使用ellipsize属性无效问题
  5. android布局属性大全
  6. Android(安卓)ScrollView 内部控件 layout_margin失效的解决方法
  7. Android属性设置大全
  8. Android控件基本属性介绍
  9. android布局属性详解

随机推荐

  1. Android(安卓)Vector矢量图
  2. Android(安卓)下的视频播放器faplayer 编
  3. 让你自己写的Android的Launcher成为系统
  4. Android中measure过程、WRAP_CONTENT详解
  5. 神们自己
  6. android JNI 开发步骤
  7. Android(安卓)Camera 系统框架分析
  8. AIDL使用学习(一):基础使用学习
  9. 【Android基础】讲讲Android的事件分发机
  10. (转)clipRect 介绍