Android LinearLayout 嵌套 button 监听LinearLayout的onClickListener事件出现问题
16lz
2021-01-23
解决方法:
1.在LinearLayout的属性增加 android:descendantFocusability="blocksDescendants"
2.将button换成imageview,在imageview的属性增加android:focusable="false"