Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能左右上下一起滑动吗?类似彩票统计那种效果? #18

Closed
zhuzhutai opened this issue Apr 28, 2017 · 4 comments
Closed

Comments

@zhuzhutai
Copy link

随便一个彩票软件都有走势那种效果,如何实现呢

@zhouchaoyuan
Copy link
Owner

其实你这个问题我考虑过,但是彩票软件的都是嵌套一个网页,目前还没见过原生的。用原生来实现还是比较难的

@anpoz
Copy link

anpoz commented May 17, 2017

要想实现那种效果,需要继承recyclerview,修改onInterceptTouchEvent的实现逻辑才行,因为RecyclerView 并没有判断用户拖动的角度, 只是用来判断拖动的距离是否大于滚动的最小尺寸。 @zhuzhutai

@zhouchaoyuan
Copy link
Owner

感觉这是个挺不错的方法

@zhuzhutai
Copy link
Author

偶然又翻到几年前的issues
那些年的需求早已实现...
开源真好

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants