AnimatedExpandableListView icon indicating copy to clipboard operation
AnimatedExpandableListView copied to clipboard

Request - scroll down when expanding last visible group

Open ghost opened this issue 10 years ago • 4 comments

It would be awesome if the list scrolled down a bit when expanding the last visible group, or a group close to the bottom of the listView (not the list itself). I was thinking about making the list scroll enough to make the top of the clicked group match the top of the list, or in case the list does not have enough elements below the clicked group to align it to the top, simply scroll down until the entire group is visible.

ghost avatar Aug 13 '14 09:08 ghost

It seems smoothScrollToPosition() was removed in this AnimatedExpandableListView so the auto scroll is not work (((.

tim-teacher avatar Sep 19 '14 01:09 tim-teacher

I added a quick fix for this that only works on Android levels 14 and up. I'll add support for 8 to 14 later today.

idunnololz avatar Sep 23 '14 21:09 idunnololz

It works. Thanks! Also it would be nice if "scroll down" works for other groups if the child is is not fully visible.

tim-teacher avatar Sep 23 '14 21:09 tim-teacher

Can you tell me how to make it scroll to bottom if if its the last item in the list. http://stackoverflow.com/questions/30182208/expandable-listview-setselectionfromtop-with-animation-and-padding

amalChandran avatar May 14 '15 11:05 amalChandran