How to get ListView to grow to the size of content
        Posted  
        
            by Jared
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Jared
        
        
        
        Published on 2010-03-15T21:11:13Z
        Indexed on 
            2010/03/15
            21:39 UTC
        
        
        Read the original article
        Hit count: 269
        
So I have a fairly complex activity the parent being a linearlayout with a table with some basic info and buttons. Then a couple listviews that the user can add items to. So these listviews grow more and more as the user uses the app. The problem I'm running into is the Linearlayout is bigger then the resolution of the screen and so it needs to scroll. So the scrolling doesn't work on the Listviews. I've tried playing with changing the layout_height of the listview and its child element with no success. Is there a way to make these couple listviews expand out to the amount of children? Or am I going about this all wrong? If so what other controls can I use?
I'm open to any ideas. I really just don't know how to go about this.
Thanks
© Stack Overflow or respective owner