Android: Fast scroll list view

Created on 21 Jun 2016  ·  21Comments  ·  Source: nextcloud/android

Enable a handler that allows fast scrolling to easily scroll to the bottom, e.g. when navigate to the oldest file.

Bug:

  • [ ] fast scroll vanishes after switching to subfolder
approved design enhancement hacktoberfest

Most helpful comment

Yes sure, I'll let you know when I start working on this feature :)

All 21 comments

I'm a fairly new android developer and especially new to the nextcloud community. I would like to break in and contribute. I'd like to take a crack at this enhancement.

Are you talking about some kind of 'fast scroll' feature where the velocity of the scroll allows a user to quickly go up or down the list view? Something like faster the fling velocity on the list view the faster the scroll?

I think this is to introduce indexable scrolling like in contacts or using this: https://github.com/andraskindler/quickscroll

Is a library wanted for this or is this something you want to implement on our own?

Best would be if we need no external library, but I do not know if this is possible.
The scrollbar should either show the date or the first character while scrolling, depending on the chosen sort order.

I agree with @tobiasKaminsky we should not have to use a lib for such a small UI enhancement.

@squiggie are you still up to and want to contribute?
If you have any question you can just join #nextcloud-mobile on #freenode and ping me.

Idea: http://androidopentutorials.com/android-listview-fastscroll/ for listview only as we use a special implementation for gridview that does not work with fast scroll (but for this is pinch zoom)

--> depending on sorting order we can show the date/name/size on the scroll handler :+1:

Look good to me, especially since we can use a standard sdk implementation. As for grid view (and also list view) this fast scroll issue for grid might be save when we get to the point of having the time to implement a recyclerview.

c&p #3167


Expected behaviour

a “Scroll Bar” so I can quickly scroll down through my thousands of pictures on the Android app.

imageimage

Actual behaviour

This is the actual behavior:

image

I don't want to swipe a hundred times or more just to look at older photos on NC. It's so much swiping! I have thousands of photos, and if I want to back in time, it would be nice to have a "Scroll bar" that will accelerate quickly and let me see photos down the list more quickly.

Please, this is a make-or-break feature, it's not a proper photos app without a scroll bar. :(

May i suggest
https://github.com/timusus/RecyclerView-FastScroll
As a great drop-in replacement? It works quite well in a lot of FOSS projects, and provides a user-experience just like regular users would expect from a view that can show a huge amount of files ….

Up

Up

@Shagequi what do you mean? This is basically an issue ready to be picked up :) Like @Nebukadneza suggested I'd say https://github.com/timusus/RecyclerView-FastScroll should be fine (also supporting Grid Layouts 😁) while I can't say if this works with our list/grid views (read: haven't looked at the code)

Also commented by @tobiasKaminsky

depending on sorting order we can show the date/name/size on the scroll handler

@AndyScherzinger
I'm "upping it" for four reasons :

  • Determine if the issue is still desired today
  • See if someone wanted to implement it before I pick the issue
  • See if there are some news since 8-10 months, like a specific implementation or some things to "not do"
  • Prevent a possible bot from closing the issue

cc @tobiasKaminsky for feedback, from my POV:

  • still desired
  • not aware of anybody picking it up (except you atm)
  • nothing I am aware of
    only bugs get checked by the stale bot

And do you want a "Bubble" Scrollbar ? like these one :
image

Or something more "customized" ?

Bubble should be fine, while it needs to be checked if this can be themed dynamically or at least in a grey-ish style so it works for most/all themes. Dynamic theming would be best of course :)

Having this for A-Z is quite easy I guess.
But we can also sort by date, by size, etc.
Then this fast scroll should also work.
I am not sure if this is possible, but it should be kept in mind.

Last, but not least, I am unsure if there is a need for a random 3rd party library…

If you have any question, just ping me :-)

Last, but not least, I am unsure if there is a need for a random 3rd party library…

If the fast scroll including the bubble can be done without an additional library than that is of course the preferred way to implement it, yes 😃

I think we need a library for the bubble

True :-)
Then please choose a well-known/active one :-)

Yes sure, I'll let you know when I start working on this feature :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rainer042 picture rainer042  ·  3Comments

Bugsbane picture Bugsbane  ·  3Comments

Shagequi picture Shagequi  ·  3Comments

ezaquarii picture ezaquarii  ·  3Comments

JSoko picture JSoko  ·  3Comments