button增加
android:focusable="false"
android:clickable="false"
contentView增加:
android:descendantFocusability="blocksDescendants" 目的:阻止Button获得触摸事件和点击事件
本文介绍如何通过设置Button属性来阻止其获得触摸事件和点击事件,包括使用android:focusable=false和android:clickable=false,以及为contentView设置android:descendantFocusability=blocksDescendants。
button增加
android:focusable="false"
android:clickable="false"
android:descendantFocusability="blocksDescendants"
被折叠的 条评论
为什么被折叠?