触摸事件不与水平列表视图工作(devsmart LIB) [英] touch event not working with horizontal list view (devsmart lib)

查看:200
本文介绍了触摸事件不与水平列表视图工作(devsmart LIB)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实现了垂直列表视图中使用librarty内侧横向列表视图: https://github.com/dinocore1 / DevsmartLib-的Andr​​oid

I have implemented horizontal list view inside vertical list view using librarty: https://github.com/dinocore1/DevsmartLib-Android.

这是工作的罚款。
我要实现的列表视图触摸监听器来管理视图头(类似于谷歌浏览器的Andr​​oid app'd网址栏)的公开程度。触摸监听器正常工作的列表视图(如水平列表视图没有在它膨胀)。但是,当用户触摸其水平列表视图列表中单元格,然后触摸事件没有被处理。

It is working fine. I have to implement touch listener on list view to manage visibilty of header view (similar to google chrome's android app'd URL bar). Touch listener works normally for list view (if horizontal list view is not inflated in it). But when user touches the list cell having horizontal list view, then touch event is not handled.

我也注意到,在水平列表视图中,触摸重写来管理其滚动。

I have also noticed that in horizontal list view, on touch is overridden to manage its scroll.

我还测试了这款在列表视图(无水平列表视图),它工作得很好。

I also tested this on a list view (having no horizontal list view), and it worked fine.

任何帮助将是非常美联社preciated。

Any help will be highly appreciated.

感谢

推荐答案

这是您的解决方案。你需要重写 onTouchEvent()在下面给出答案 -
http://stackoverflow.com/a/7882050/609782

This is your solution. You need to override the onTouchEvent() as given in following answer- http://stackoverflow.com/a/7882050/609782

这篇关于触摸事件不与水平列表视图工作(devsmart LIB)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆