LinearLayout 中包含 TextView,LinearLayout 点击事件不生效

原因:TextView控件覆盖了LinearLayout ,同事也覆盖了他的点击事件,所有需要在
TextView的属性中添加:

android:duplicateParentState="true"

即可。

posted on 2016-07-08 17:09  牛笑笑  阅读(6707)  评论(0编辑  收藏  举报

导航