Comments (13)
This will be done after some changes to how sections are handled, and the scroll bar size and position is calculated.
from superslim.
Thank you for considering it.
I was wondering : how do you add a fast scroller ? Is there any built in view for this?
from superslim.
Honestly, I only looked at it just now. It looks like I'll have to build a fast scroll for it. I might end out doing a generic fast scroll overlay as well.
from superslim.
That's too bad. odd that Google doesn't provide one, as it's used on various scrolling views...
from superslim.
I think the reason for it is twofold. 1) RecyclerView is extremely bare
bones anyway, and 2) adding a fast scroller might have limited the kinds of
layout manager you can create. I am already thinking about what kind of
assumptions I might have to make in order to implement the fast scroller.
On 8 Jan 2015 20:49, "AndroidDeveloperLB" [email protected] wrote:
That's too bad. odd that Google doesn't provide one, as it's used on
various scrolling views...—
Reply to this email directly or view it on GitHub
#5 (comment).
from superslim.
I didn't talk about RecyclerView. I meant even before it was introduced.
I think ListView isn't the only view with a fast-scroller, so I also thought that it's odd that it isn't a build in view that you can use in other places.
About how to make it generic, I think you should have a 2-way listener. One for telling where the user is scrolling via the fast-scroller, and another for telling where the user is scrolling on the scrolling-container (listView/RecyclerView/...) .
When scrolling via the scroller itself, the scrolling-container should scroll so that the first item (row in the case of ListView) would be at the top and completely visible.
Also, you could add an option to customize how the fast-scroller looks like and how the small popup of it looks like (and if you wish to show it at all).
Another thing to look for is the SectionIndexer.
from superslim.
Maybe SectionIndexer isn't needed.
I think that once you provide a listener, the developer can check what is the first item, and decide what to show for the popup of the scroller.
from superslim.
I would like to throw my hat into the ring in requesting a 'vertical fast scroller'.
from superslim.
@RayDar I've made a POC that demonstrates it, if you wish:
https://github.com/AndroidDeveloperLB/LollipopContactsRecyclerViewFastScroller
from superslim.
@TonicArtos in the LayoutManager
, computeVerticalScrollRange() method is there, when you are going to implement this method. It's implemented but of no use as of now bcoz, for this reason, I am unable to implement FastScroll and is failing for computation.
from superslim.
It is planned, but the rewrite still has to be finished. With 0.4 it wasn't possible to implement without significant performance problems, and was never going to work with lazily loaded views either.
from superslim.
See the roadmap
from superslim.
private fun updateBubbleAndHandlePosition() {
if (bubble == null || handle!!.isSelected)
return
val offset = recyclerView!!.computeVerticalScrollOffset()
val extent = recyclerView!!.computeVerticalScrollExtent()
val range = recyclerView!!.computeVerticalScrollRange()
var relativePos = 0f
if (recyclerView!!.childCount > 0) {
relativePos = offset / (range - extent).toFloat()
}
setBubbleAndHandlePosition(viewHeight * relativePos)
}
change this method to work with https://github.com/AndroidDeveloperLB/LollipopContactsRecyclerViewFastScroller
from superslim.
Related Issues (20)
- Flexbox layout
- Dynamic sticky content
- Built in elevation change for sticky content.
- Infinite scroll
- Collapsible/expandable sections
- Sticky footers weirdly wobble on horizontal scroll. HOT 1
- Toggling collapsible sections loses items.
- Prepare milestone 5 release
- Update Readme.md
- On layout a sticky footer always sits above sticky inset (section state inset parameter).
- Sticky footer HOT 2
- RecycleView scrolls over sticky header
- Crash On RecyclerView Refresh
- Does SuperSLiM supports sub headers ? HOT 10
- Mocking framework
- i cannot build the project
- NPE at LayoutManager#onItemsUpdated
- Androidx HOT 1
- Is this covered by the Apache 2.0 License?
- Scrolling issue with Sticky Headers on
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 superslim.