Skip to content Skip to sidebar Skip to footer

Android Expandable Listview Automatically Scrolls To The Bottom When I Click On Group

I have an ExpandableListView that is filled with items. When you click on an item on the top level it opens up the next level which shows a list that contains some additional infor

Solution 1:

I was facing the same problem and found the really simple solution here : [Android ExpandableListView Scroll to Expanded Group Position]

Edit: Since the link dies once a month here the really simple solution: Just set the android:transciptMode="disabled". This prevents the scroll to the last list position.

For further reading: Transcript mode in Android docs

Solution 2:

It's the standard ExpandableListView behavior. It tries to show all the items of the group that the user just expanded. In your case expanding groups 1-7 does not hide any children, but for other groups it does, so the list scrolls.

Post a Comment for "Android Expandable Listview Automatically Scrolls To The Bottom When I Click On Group"