Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个View使用ListAdapter. 现在我想滑动Viewusing OnTouchListener,但只要我触摸View,该onItemClickListener方法就会被触发。
View
ListAdapter
OnTouchListener
onItemClickListener
我尝试同时添加OnTouchListener和onItemClickListener,View但OnTouchListner似乎只是被解雇了。请帮助我,以便我可以滑动整个View,并且能够通过View点击添加项目。
OnTouchListner
我认为单击不起作用,只会触发触摸事件。您可以尝试长按触摸或查看下面的链接
不能同时处理点击和触摸事件
或者看看ViewPager或Android-ViewPagerIndicator