首页 > 技术文章 > LinearLayout 中包含 TextView,LinearLayout 点击事件不生效
niuxx-android 2016-07-08 17:09 原文
原因:TextView控件覆盖了LinearLayout ,同事也覆盖了他的点击事件,所有需要在
TextView的属性中添加:
android:duplicateParentState="true"即可。