[mono-android] Best way to have a list view scroll the whole screen
cdrew at trenchant-tech.com
Thu Feb 2 17:32:56 UTC 2012
New to Android development so forgive any obvious errors! I have
implemented an activity which has a number of 'header' fields and a
ListView. The ListView uses a ListAdapter to display the list items as they
are both variable height and contain multiple lines per list item.
This all works fine apart from the fact that the ListView occupies a fairly
small area of the screen and only scrolls within this area. What I really
want is for the ListView not to scroll itself but for the whole page to
To this end I have put a Scroll View around both the header fields and the
listview but this does not work correctly in that not all of the list items
can be seen and you can still scroll the list view in isolation.
I have read that there is a bug (targeting Android 2.3) which means that a
ListView does not work correctly within a ScrollView but this must be a
My GetView in my ListAdapter inflates my grid item and then populates it -
is it possible to do this outside of a list view and just add the 'list
items' directly to the ScrollView, so not using a ListView?
Thanks for any suggestions///
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Best-way-to-have-a-list-view-scroll-the-whole-screen-tp5451406p5451406.html
Sent from the Mono for Android mailing list archive at Nabble.com.
More information about the Monodroid