Android(安卓)LinearLayout 嵌套 button 监听LinearLayout的onClickListener事件出现问题
16lz
2021-12-04
解决方法:
1.在LinearLayout的属性增加 android:descendantFocusability="blocksDescendants"
2.将button换成imageview,在imageview的属性增加android:focusable="false"
更多相关文章
- ListView滚动条问题
- Android控件属性大全
- Android控件属性大全
- 解决android TextView多行文本(超过3行)使用ellipsize属性无效问题
- android布局属性大全
- Android(安卓)ScrollView 内部控件 layout_margin失效的解决方法
- Android属性设置大全
- Android控件基本属性介绍
- android布局属性详解