Comments (4)
使用最新版本1.1.2
此版本以基本满足这些需求
第4条可以通过setBackgroundView在GoBackView的基础上绘制一层drawable
from parallaxbacklayout.
非常感谢大神的贡献以及对我建议的采纳,不过就目前来说貌似还有点小问题,现在默认的滑动阈值是0.999f,靠手动滑动基本是达不到这个值的,因此当手指释放的时候基本是不会触发返回操作的,修改这个阈值后当滑动到阈值时马上就会触发finish(),而不管手指是否已经释放。这个问题虽然可以自己在回调中通过判断手指抬起事件来调用scrollToFinishActivity()来解决,但我觉得这个操作可以放在库中实现而不是在使用的库时候在回调中判断来实现,或者说这个阈值应该是对手指释放事件才起作用的,而且我觉得还可以进一步封装是否支持快速滑动来触发滑动返回事件,就像微信那样,以及快速滑动的阈值。还有目前来说好像还没有实现在activity任意位置滑动返回,只能在边缘滑动返回,希望大神能在库中加入这个选项,可以自定义是否在边缘触发滑动返回还是activity任意位置触发返回。如果可能的话还可以加入同时对多个方向滑动返回的支持,如同时支持左滑和上滑返回。这个库是我目前找到的滑动返回中最好用的一个库了,希望大神能再辛苦一下,让这个库更加强大和好用。
from parallaxbacklayout.
感谢你的测试,阈值确实是我的疏忽(用错了变量),全屏滑动是因为demo中忘记加了listener,现在已经修正来了
from parallaxbacklayout.
非常感谢大神的贡献
from parallaxbacklayout.
Related Issues (18)
- one sug HOT 4
- 快速滑动有问题 HOT 3
- 混淆代码后会有问题,枚举类型需要保护 HOT 2
- 部分机器关闭后页面闪 HOT 4
- 可否设置同时支持左滑和右滑,或者上滑和下滑 HOT 1
- Fragment支持吗
- 作者还有维护么 HOT 2
- 小米6 返回屏幕会闪烁一下 HOT 5
- 调用 ParallaxHelper.enableParallaxBack 时跳转Activity可能会导致崩溃
- 作者求助一下 HOT 4
- 主题
- 作者的类库使用v4的包导致与项目V7包下的方法不能使用
- 麻烦看下Gradle为什么编译不通过 HOT 1
- compile 'com.github.anzewei:parallaxbacklayout2:1.0' 同步失败 HOT 1
- full donot work HOT 1
- 和Viewpager冲突 HOT 2
- 7.0以上测试出现上个页面若有图片会闪屏 HOT 28
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parallaxbacklayout.