In action, there is a ListView with the appropriate adapter. Each item in this ListView has an ExpandableListView extension with an associated adapter.
Initially, there are only two elements in a ListView, and all expandable lists are not expandable. Currently, the height of the ListView does not exceed the height of the screen (suppose the height of the screen is 800 and the height of the ListView is 600.).
Then I click the dropdown listview in the first item, the extensible view of the list expands. However, the height of the ListView does not change (an empty area still exists).
Is there a way to adjust the height of the list so that the empty area can be removed when I click to expand the expanded view of the list? Thanks.
source share