When the group is consumed, automatically scrolls to the last child
I have an application with ExpandableListView
. When the child list is longer than the screen, the list is first shown as scrollable to the bottom / image 1 /. How can I get it to expand the list that opens at the beginning of the list and not the end / image 2 /.
This happens when the previous group collapses.
collapseGroup(previousGroup);
The answer to this similar post did not work
+3
ArmDroid
source
to share
1 answer
Call something like this in an expense group
For direct scrolling:
getListView().setSelection(childPosition);
For smooth scrolling:
getListView().smoothScrollToPosition(childPosition);
+1
SpyZip
source
to share