GithubHelp home page GithubHelp logo

Comments (13)

TonicArtos avatar TonicArtos commented on July 18, 2024

This will be done after some changes to how sections are handled, and the scroll bar size and position is calculated.

from superslim.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on July 18, 2024

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.

TonicArtos avatar TonicArtos commented on July 18, 2024

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.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on July 18, 2024

That's too bad. odd that Google doesn't provide one, as it's used on various scrolling views...

from superslim.

TonicArtos avatar TonicArtos commented on July 18, 2024

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.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on July 18, 2024

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.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on July 18, 2024

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.

RayDar avatar RayDar commented on July 18, 2024

I would like to throw my hat into the ring in requesting a 'vertical fast scroller'.

from superslim.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on July 18, 2024

@RayDar I've made a POC that demonstrates it, if you wish:
https://github.com/AndroidDeveloperLB/LollipopContactsRecyclerViewFastScroller

from superslim.

EpariNigam avatar EpariNigam commented on July 18, 2024

@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.

TonicArtos avatar TonicArtos commented on July 18, 2024

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.

TonicArtos avatar TonicArtos commented on July 18, 2024

See the roadmap

from superslim.

luweglinski avatar luweglinski commented on July 18, 2024
 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)

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.