• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps ListView - add/remove items dynamically

Ristar

Lurker
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?
 
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.
 
Back
Top Bottom