setMultiChoiceItems

Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener. This should be an array type, e.g. R.array.foo. The list will have a check mark displayed to the right of the text for each checked item. Clicking on an item in the list will not dismiss the dialog. Clicking on a button will dismiss the dialog.

Return

This Builder object to allow for chaining of calls to set methods

Parameters

itemsId

the resource id of an array i.e. R.array.foo

checkedItems

specifies which items are checked. It should be null in which case no items are checked. If non null it must be exactly the same length as the array of items.

listener

notified when an item on the list is clicked. The dialog will not be dismissed when an item is clicked. It will only be dismissed if clicked on a button, if no buttons are supplied it's up to the user to dismiss the dialog.


Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener. The list will have a check mark displayed to the right of the text for each checked item. Clicking on an item in the list will not dismiss the dialog. Clicking on a button will dismiss the dialog.

Return

This Builder object to allow for chaining of calls to set methods

Parameters

items

the text of the items to be displayed in the list.

checkedItems

specifies which items are checked. It should be null in which case no items are checked. If non null it must be exactly the same length as the array of items.

listener

notified when an item on the list is clicked. The dialog will not be dismissed when an item is clicked. It will only be dismissed if clicked on a button, if no buttons are supplied it's up to the user to dismiss the dialog.


Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener. The list will have a check mark displayed to the right of the text for each checked item. Clicking on an item in the list will not dismiss the dialog. Clicking on a button will dismiss the dialog.

Return

This Builder object to allow for chaining of calls to set methods

Parameters

cursor

the cursor used to provide the items.

isCheckedColumn

specifies the column name on the cursor to use to determine whether a checkbox is checked or not. It must return an integer value where 1 means checked and 0 means unchecked.

labelColumn

The column name on the cursor containing the string to display in the label.

listener

notified when an item on the list is clicked. The dialog will not be dismissed when an item is clicked. It will only be dismissed if clicked on a button, if no buttons are supplied it's up to the user to dismiss the dialog.