查看一下Button怎么就默认消费了点击事件
看了button的源码
public Button(Context context, AttributeSet attrs) { this(context, attrs, com.android.internal.R.attr.buttonStyle); }
然后就需要看看 com.android.internal.R.attr.buttonStyle
这个在哪里呢--Framework
找到
搜索
再看,问题原来在这里
查看一下Button怎么就默认消费了点击事件
看了button的源码
public Button(Context context, AttributeSet attrs) { this(context, attrs, com.android.internal.R.attr.buttonStyle); }
然后就需要看看 com.android.internal.R.attr.buttonStyle
这个在哪里呢--Framework
找到
搜索
再看,问题原来在这里