Comments (18)
Requested to merge. One can just download my repo for urgent use. Let me know of results.
from discretescrollview.
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.
@sevar83 Nice! You are right about fling. Thanks for your answer! I will try it out immediately.
from discretescrollview.
@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.
@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.
@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.
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.
@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.
@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.
Oh wait! I just achieved it!
from discretescrollview.
@srujan7 Really? I can't wait to see your solution.
from discretescrollview.
Post your findings or make a merge request later please :3 I'm trying to get this to work as well.
from discretescrollview.
Give me few hours guys will make a pull req. ✌
from discretescrollview.
@srujan7 Good job! Works like magic. Is it possible to furthermore allow sliding of multiple views on the drag gesture?
from discretescrollview.
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.
@srujan7 Good job!
from discretescrollview.
Closed via 34b23fc
from discretescrollview.
Thanks a lot!
from discretescrollview.
Related Issues (20)
- ViewPager2 HOT 1
- ScaleTransformer not transforming uniformly HOT 1
- Make an AsyncTask call in a specific slider HOT 1
- Speed On scroll
- Scroll to Specific Element HOT 2
- ConcurrentModificationException
- How to put the first item on left of screen HOT 1
- If the width of each item is different, it will still use the width of the first item as the default width. HOT 2
- i
- Disable snap to ViewHolder HOT 1
- Fatal Exception: java.lang.IllegalArgumentException
- Library artifacts are published to jcenter only, which will close in 3 months HOT 15
- While using smoothScrollToPosition() the app isn't responding HOT 3
- hello,please What is the reason? HOT 2
- highlight current item with different background color HOT 1
- The view for DiscreteScrollView it will be messed-up after the user lock his phone and unlock it multiple time. please see the attached screenshots. HOT 2
- jcenter error HOT 4
- Rtl LayoutManager HOT 2
- App.getSharedPreferences(java.lang.String, int)' on a null object reference HOT 1
- How to close an infinite loop? HOT 1
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 discretescrollview.