I have an activity with the following plan of layouts:
__________
|TextView|
| |
|ListView|
|........|
|........|
|........|
|........|
|........|
|........|
|TextView|
|TextView|
|********|
----------
All the views are filled dynamically, therefore, could be of varying size. Ofcourse, all of it can't fit into the screen all at once. I want all the content of my activity to be scrollable - top to bottom. Therefore, I'm planning to wrap-up everything in one single ScrollView
.
But, when I try to do so, only one item of the ListView
gets displayed. How could I resolve this?
UPDATE:
Adding a header and a footer layout to the ListView eventually solved my problem. Didn't try other answers though.
Also, I had to add the header/footer before setting the adapter to the ListView
. Adding them after the adapter was screwing up the UI as it was updating.