简体   繁体   English

列表项捕获onTouchEvent时在ListView中调用OnItemClicked()

[英]invoke OnItemClicked() in a ListView while list items catch onTouchEvent

my list items implements OnTouchListener and therefore the OnItemClicked() method of the ListView is not invoked. 我的列表项实现了OnTouchListener,因此没有调用ListView的OnItemClicked()方法。 Can anyone help me to make it work? 谁能帮我使它正常工作?

Take a look here: 在这里看看:
Clickable ListView 可点击的列表视图

I had the same problem on the first time ;) 我第一次遇到同样的问题;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM