1. Download our Official Android App: Forums for Android!

Apps ListView Help

Discussion in 'Android Development' started by The_app_main, Dec 14, 2011.

  1. The_app_main

    The_app_main Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    78
    Joined:
    Sep 10, 2011

    Sep 10, 2011
    78
    1
    16
    I'm writing an app and I think I want a listView but I'm having problems. Let me describe what I want. I want a listview with a header and a footer and the list items between the two. I've got the header and footer properly inserted into the listview and everything is working like it should. The problem is when so many items are added to the listview it kicks the footer off the screen. I want to confine the layout to the header at the very top and the footer at the very bottom and have the listview items scroll if they get to a size that can't show them all within the bounds of the header and footer. I've already tried setting the listview to match_parent, fill_parent, and wrap_content but none of those options accomplished with I want to do. Ideas? Should I be using a different layout? Thanks
     

    Advertisement

  2. The_app_main

    The_app_main Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    78
    Joined:
    Sep 10, 2011

    Sep 10, 2011
    78
    1
    16
    Anybody? Do you understand the question?
     
  3. zet23t

    zet23t Lurker
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Dec 17, 2011

    Dec 17, 2011
    3
    0
    5
    I think I understand the question - having a header and footer at fixed position but a scrollable body at the same time, right? In that case - I have had similar requirements in HTML designs but it never really worked out. I would be surprised if the stock UI elements covered the case. I haven't stumbled upon such a feature yet...
     
  4. alostpacket

    alostpacket Over Macho Grande?
    Rank:
    None
    Points:
    513
    Posts:
    7,972
    Joined:
    Nov 29, 2009

    Nov 29, 2009
    7,972
    3,603
    513
    Android App Developer
    NY

Share This Page

Loading...