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

为什么不能支持全局滑动 #186

Open
DaveBoy opened this issue May 5, 2019 · 1 comment
Open

为什么不能支持全局滑动 #186

DaveBoy opened this issue May 5, 2019 · 1 comment

Comments

@DaveBoy
Copy link

DaveBoy commented May 5, 2019

ViewDragHelper中的getEdgeTouched方法希望能改进,
这个方法会导致加大滑动区域后其他方向的判定距离也会变大,从而导致识别出来的滑动方向和设置的滑动方向冲突,导致很大部分区域无法滑动。
建议把setEdgeSize设置成四个参数,分为上下左右

@luckybilly
Copy link

@DaveBoy 试试SmartSwipe

其中的SmartSwipeBack实现了全局Activity侧滑返回功能,特色:

无需透明主题
无需继承某个特定的Activity
不需要侵入xml布局文件
也不需要侵入BaseActivity
全局只需一行代码即可搞定所有Activity侧滑返回
支持全屏侧滑和(/或)边缘侧滑

可选样式:开门、百叶窗、仿微信、仿QQ及仿MIUI贝塞尔曲线。

文档地址: https://luckybilly.github.io/SmartSwipe-tutorial/

Demo:
image

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

2 participants