Tag Archives: Choice Radio

How to add checkboxes and radio buttons to ListView in android? OR How to set single choice items in a ListView in android?

By | May 25, 2012

To create a list of multiple-choice items (checkboxes) or single-choice items (radio buttons) inside the dialog, use the setMultiChoiceItems() and setSingleChoiceItems() methods, respectively. If you create one of these selectable lists in the onCreateDialog() callback method, Android manages the state of the list for you. As long as the Activity is active, the dialog remembers… Read More »