GithubHelp home page GithubHelp logo

Comments (18)

srujanb avatar srujanb commented on May 21, 2024 4

Requested to merge. One can just download my repo for urgent use. Let me know of results.

from discretescrollview.

sevar83 avatar sevar83 commented on May 21, 2024

Speaking strictly the gesture you describe is not scroll but "fling". If it's not too late I suggest you to try overriding DiscreteLayoutManager.onFling() and/or getHowMuchIsLeftToScroll().

from discretescrollview.

timshinlee avatar timshinlee commented on May 21, 2024

@sevar83 Nice! You are right about fling. Thanks for your answer! I will try it out immediately.

from discretescrollview.

timshinlee avatar timshinlee commented on May 21, 2024

@sevar83 Pity the DiscreteLayoutManager is not public. Is adding this library as module and making DiscreteLayoutManager public the only way to achieve this? I wonder why the author prefer not to make DiscreteLayoutManager public while offering DiscreteScrollView.setLayoutManger(DiscreteScrollLayoutManager layoutManager)?

from discretescrollview.

bnottingham avatar bnottingham commented on May 21, 2024

@timshinlee were you able to solve this issue, this library is perfect except for being able to scroll through more than one item at a time.

from discretescrollview.

timshinlee avatar timshinlee commented on May 21, 2024

@bnottingham Sorry. I tried but can't figure it out. @yarolegovich Would you consider adding fling through multiple items as a new feature?

from discretescrollview.

yarolegovich avatar yarolegovich commented on May 21, 2024

How do you propose to determine an amount of positions to scroll through?
Btw, I will be really happy to review and accept a pull request with this feature.

from discretescrollview.

timshinlee avatar timshinlee commented on May 21, 2024

@yarolegovich Sorry I am not familiar enough with the scrolling mechanism to pull a solution request.
But just like RecyclerView itself or ListView, they can continue scrolling over certain distances after the finger flings.
I think using velocity to determine the amount of positions may be feasible.

from discretescrollview.

srujanb avatar srujanb commented on May 21, 2024

@timshinlee absolutely. Velocity can be decided to determine the amount of positions. @yarolegovich I tried to solve it but didn't succeed yet. Still trying though but I doubt to succeed. Even I'm dealing with the scrolling mechanism for the first time. You must have known all the tits-bits of the code. Can you either help or implement it yourself? For many this is the only lacking feature in the library. :)

from discretescrollview.

srujanb avatar srujanb commented on May 21, 2024

Oh wait! I just achieved it!

from discretescrollview.

timshinlee avatar timshinlee commented on May 21, 2024

@srujan7 Really? I can't wait to see your solution.

from discretescrollview.

gr3ger avatar gr3ger commented on May 21, 2024

Post your findings or make a merge request later please :3 I'm trying to get this to work as well.

from discretescrollview.

srujanb avatar srujanb commented on May 21, 2024

Give me few hours guys will make a pull req. ✌

from discretescrollview.

timshinlee avatar timshinlee commented on May 21, 2024

@srujan7 Good job! Works like magic. Is it possible to furthermore allow sliding of multiple views on the drag gesture?

from discretescrollview.

hemanthkaipaa avatar hemanthkaipaa commented on May 21, 2024

I've wasted 4 days of my time..! I didn't checked library issues..? its pity, I am about to raise this scroll issue. But got a solution from Srujan.....!Thank you Srujan..!

from discretescrollview.

whathegithub avatar whathegithub commented on May 21, 2024

@srujan7 Good job!

from discretescrollview.

yarolegovich avatar yarolegovich commented on May 21, 2024

Closed via 34b23fc

from discretescrollview.

timshinlee avatar timshinlee commented on May 21, 2024

Thanks a lot!

from discretescrollview.

Related Issues (20)

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.