You should not put the listview inside a scrollview. Listview provides its own functionality to scroll content inside the list.
On Thu, Feb 2, 2012 at 6:32 PM, cmdrew <[email protected]> wrote: > Hi, > > 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 > scroll. > > 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 > common requirement. > > 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. > _______________________________________________ > Monodroid mailing list > [email protected] > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid -- Med Venlig Hilsen / With Best Regards Tomasz Cielecki http://ostebaronen.dk _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
