Android - Thumb of fastscroll in expandablelistview doesnt scroll list correctly
Asked Answered
L

2

17

i am using an expandablelistview to show a list of groups containing different counts of children. sometimes the list is very long, so i wanted to enable fastscroll. i did this and everything is working fine when i scroll the list with the finger in the usual way.

but when i grab the thumb and drag it to the bottom, the list is scrolled to the last position when i have moved the thumb about 1/3 of the height from the top. what can i do to have the thumb position the list according to the full height of the scrollbar?

Literal answered 23/9, 2011 at 7:45 Comment(2)
Are there any updates from Google about addressing this fastscroll bug?Landlord
Same problem did anyone find a good solution ?Memoir
S
1

Last answer went missing.

This is a known bug in Android FastScroller.

See my code attached to http://code.google.com/p/android/issues/detail?id=24635

it contains a work-around that works for some specific cases.

Scotsman answered 29/4, 2012 at 13:2 Comment(1)
After a long time i updated my project and used the FastScroller you mentioned. Unfortunately it seems that there are listsizes where it doesn't work.Literal
S
0

I posted a workaround here. It uses a OnScrollListener to act differently if the user scrolls via touch or via thumb.

Sudhir answered 24/6, 2013 at 14:29 Comment(1)
@ mitch000001, I've tried your code in my ExpandableListView app, but it gave me a NullPointerException force close error whenever I expanded any group. Do I need the SectionIndexer.java in order to make it to work? Can you please help me on this? Thank youSidewheel

© 2022 - 2024 — McMap. All rights reserved.