I have an android layout which has a scrollView with a number of elements with in it. At the bottom of the scrollView I have a listView
I know it's been so long but I got this problem too, tried this solution and it's working. So I guess it may help the others too.
I add android:fillViewport="true" on the layout xml for the scrollView. So overall my ScrollView will be like this.
And it works like magic to me. the ListView that located inside my ScrollView expand to its size again.
Here is the full example code for the ScrollView and the ListView.
....
....