自定义ListView无法响应点击事件

转载自:http://blog.csdn.net/datao819/article/details/7382461

问题描述:

自定义的ListView无法触发OnItemClickListener。

 解决方法:

对Item Layout的根控件设置其android:descendantFocusability="blocksDescendants"即可。

                          作者:xubuhang                出处:http://www.cnblogs.com/xubuhang/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 

 
【推广】 免费学中医,健康全家人
原文地址:https://www.cnblogs.com/xubuhang/p/4073489.html