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

Apps How do you show more than one layout in a listview?

Discussion in 'Android Development' started by ChicoFox, Apr 22, 2010.

  1. ChicoFox

    ChicoFox Member
    Thread Starter
    Rank:
    None
    Points:
    35
    Posts:
    37
    Joined:
    Nov 18, 2009

    Nov 18, 2009
    37
    0
    35
    Witch City
    Is this possible other than using only one layout and choosing which views in it to make visible and invisible based on a flag? Since you have to specify a layout in the constructor of the array adapter, I see this as the only way?

    For example, say I want to have an editable text box and button in the first row of the listview, then have just a textview in the remaining rows.

    Thanks for any help.
     

    Advertisement

Share This Page

Loading...