android 设置叠加父级响应点击事件

最近做android项目时,需要让button的后面的relatelayout可以点击,但是虽然把button设置成了focusable="false",relatelayout中的叠加部分也不能点击,然后把button设置成clickable设置成"false",也还是不能点击。。。于是我只能把relatelayout设置一下focusable="true",这时才可以点击了。。。后来经过反复试验发现这三个条件缺一不可,必须要button既不能focus也不能click,才能把事件转播到父级处理。。

 

 

posted @ 2014-01-27 19:17  Zane Young  阅读(372)  评论(0编辑  收藏  举报