Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request - scroll down when expanding last visible group #25

Open
ghost opened this issue Aug 13, 2014 · 4 comments
Open

Request - scroll down when expanding last visible group #25

ghost opened this issue Aug 13, 2014 · 4 comments

Comments

@ghost
Copy link

ghost commented Aug 13, 2014

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.

@tim-teacher
Copy link

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

@idunnololz
Copy link
Owner

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.

@tim-teacher
Copy link

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

@amalChandran
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants