Thanks for the responses, but I don't think they let me accomplish what I want. I put in a ScrollView because I cannot fit everything onto the screen. I would like to have several ListViews in one long vertical layout, each with an associated textbox and button to add keywords to it. I could add the controls to the ListView's header/ footer, but I still want to have several of them on a scrollable screen, not just one. Ideally, each ListView would behave just like several TextViews stacked together in the middle of the ScrollView (with the possibility of adding more at runtime).
Maybe this isn't actually possible given the constraints of the various views' interactions with each other, but it seems like I just haven't been able to figure out how to correctly configure the heights of all of them. Any further help is greatly appreciated! Thank you, Andrey On Mar 6, 7:44 am, lbendlin <[email protected]> wrote: > Exactly. Put the scrollview into the listview. Add the UI elements > into the listview header and footer. > . > On Mar 5, 7:40 pm, Mark Murphy <[email protected]> wrote: > > > On Sat, Mar 5, 2011 at 6:55 PM, Andrey <[email protected]> wrote: > > > Is there anything I can do to achieve a similar effect? I want to > > > have several sections (each with a ListView, EditText, and a submit > > > button) that people can add items to on one page. For example, a user > > > should be able to add their favorite colors and favorite numbers to > > > two separate lists. Each time an item is added, it should be > > > displayed above the input box (so it can be removed with a long > > > click). I know I could split this up into a layout for each list, but > > > it would be much better for me to have several on the same page for > > > now. What is the limitation with using ListView inside a ScrollView? > > > Doesn't a ScrollView expand to accommodate its contents? > > > The problem is that ListView and ScrollView will fight over the touch > > events. > > > The solution is to put everything in the ListView, either by using > > addHeaderView(), or perhaps by using my MergeAdapter: > > >https://github.com/commonsguy/cwac-merge > > > -- > > Mark Murphy (a Commons > > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > > _Android Programming Tutorials_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

