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

