GithubHelp home page GithubHelp logo

Comments (4)

waldenana avatar waldenana commented on July 28, 2024

使用最新版本1.1.2
此版本以基本满足这些需求

第4条可以通过setBackgroundView在GoBackView的基础上绘制一层drawable

from parallaxbacklayout.

528787067 avatar 528787067 commented on July 28, 2024

非常感谢大神的贡献以及对我建议的采纳,不过就目前来说貌似还有点小问题,现在默认的滑动阈值是0.999f,靠手动滑动基本是达不到这个值的,因此当手指释放的时候基本是不会触发返回操作的,修改这个阈值后当滑动到阈值时马上就会触发finish(),而不管手指是否已经释放。这个问题虽然可以自己在回调中通过判断手指抬起事件来调用scrollToFinishActivity()来解决,但我觉得这个操作可以放在库中实现而不是在使用的库时候在回调中判断来实现,或者说这个阈值应该是对手指释放事件才起作用的,而且我觉得还可以进一步封装是否支持快速滑动来触发滑动返回事件,就像微信那样,以及快速滑动的阈值。还有目前来说好像还没有实现在activity任意位置滑动返回,只能在边缘滑动返回,希望大神能在库中加入这个选项,可以自定义是否在边缘触发滑动返回还是activity任意位置触发返回。如果可能的话还可以加入同时对多个方向滑动返回的支持,如同时支持左滑和上滑返回。这个库是我目前找到的滑动返回中最好用的一个库了,希望大神能再辛苦一下,让这个库更加强大和好用。

from parallaxbacklayout.

waldenana avatar waldenana commented on July 28, 2024

感谢你的测试,阈值确实是我的疏忽(用错了变量),全屏滑动是因为demo中忘记加了listener,现在已经修正来了

from parallaxbacklayout.

528787067 avatar 528787067 commented on July 28, 2024

非常感谢大神的贡献

from parallaxbacklayout.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.