1. Check out our companion app, Forums for Android! Download from Google Play

ListView - add/remove items dynamically

Discussion in 'Application Development' started by Ristar, Aug 29, 2012.

  1. Ristar

    Ristar Member
    Thread Starter
    25

    Jul 22, 2012
    8
    0
    25
    how to dynamically add/remove items to a ListView and display it?

    how to put a list of items (that can be clicked), and put a list of CheckBoxes?
     

    Advertisement

  2. jonbonazza

    jonbonazza Well-Known Member
    163

    Jul 13, 2010
    1,934
    459
    163
    Male
    1) To add/remove items to/from a ListView, you need to create subclass an Adapter (most of the time, you would subclass ArrayAdapter) and override the getView() method.

    2) create an XML layout file that visualizes your list item.
     

Share This Page

Loading...