public interface ListDialogDecorator extends Dialog
| Modifier and Type | Method and Description |
|---|---|
int |
getItemColor()
Returns the color of the list items of the dialog.
|
android.widget.ListAdapter |
getListAdapter()
Returns the adapter of the list view, which is contained by the dialog.
|
android.widget.ListView |
getListView()
Returns the list view, which is contained by the dialog.
|
void |
setAdapter(android.widget.ListAdapter adapter,
android.content.DialogInterface.OnClickListener listener)
Sets the adapter, which provides the items, which should be shown by the dialog.
|
void |
setItemColor(int color)
Sets the color of the list items of the dialog.
|
void |
setItems(java.lang.CharSequence[] items,
android.content.DialogInterface.OnClickListener listener)
Sets the items, which should be shown by the dialog.
|
void |
setItems(int resourceId,
android.content.DialogInterface.OnClickListener listener)
Sets the items, which should be shown by the dialog.
|
void |
setMultiChoiceItems(java.lang.CharSequence[] items,
boolean[] checkedItems,
android.content.DialogInterface.OnMultiChoiceClickListener listener)
Sets the selectable items, which should be shown by the dialog.
|
void |
setMultiChoiceItems(int resourceId,
boolean[] checkedItems,
android.content.DialogInterface.OnMultiChoiceClickListener listener)
Sets the selectable items, which should be shown by the dialog.
|
void |
setMultiChoiceItems(android.widget.ListAdapter adapter,
boolean[] checkedItems,
android.content.DialogInterface.OnMultiChoiceClickListener listener)
Sets the adapter, which provides the selectable items, which should be shown by the dialog.
|
void |
setOnItemSelectedListener(android.widget.AdapterView.OnItemSelectedListener listener)
Sets the listener, which should be notified, when an item, which is shown by the dialog is
selected.
|
void |
setSingleChoiceItems(java.lang.CharSequence[] items,
int checkedItem,
android.content.DialogInterface.OnClickListener listener)
Sets the selectable items, which should be shown by the dialog.
|
void |
setSingleChoiceItems(int resourceId,
int checkedItem,
android.content.DialogInterface.OnClickListener listener)
Sets the selectable items, which should be shown by the dialog.
|
void |
setSingleChoiceItems(android.widget.ListAdapter adapter,
int checkedItem,
android.content.DialogInterface.OnClickListener listener)
Sets the adapter, which provides the selectable items, which should be shown by the dialog.
|
getContextandroid.widget.ListView getListView()
ListView or null, if the dialog does not show any list items or has not been shown yetandroid.widget.ListAdapter getListAdapter()
ListAdapter or null, if the dialog does not show any list itemsint getItemColor()
Integer valuevoid setItemColor(int color)
color - The color, which should be set, as an Integer valuevoid setItems(java.lang.CharSequence[] items,
android.content.DialogInterface.OnClickListener listener)
onSaveInstanceState-method, because it is not serializable. Therefore this
method must be called again after configuration changes, e.g when the orientation of the
device has changed, in order to re-register the listener.items - The items, which should be set, as an array of the type CharSequence. The
items may not be nulllistener - The listener, which should be notified, when an item is clicked, as an instance of
the type DialogInterface.OnClickListener or null, if no listener should be
notifiedvoid setItems(int resourceId,
android.content.DialogInterface.OnClickListener listener)
onSaveInstanceState-method, because it is not serializable. Therefore this
method must be called again after configuration changes, e.g when the orientation of the
device has changed, in order to re-register the listener.resourceId - The resource id of the items, which should be set, as an Integer value. The
resource id must correspond to a valid array resourcelistener - The listener, which should be notified, when an item is clicked, as an instance of
the type DialogInterface.OnClickListener or null, if no listener should be
notifiedvoid setAdapter(android.widget.ListAdapter adapter,
android.content.DialogInterface.OnClickListener listener)
onSaveInstanceState-method, because they are not serializable. Therefore this
method must be called again after configuration changes, e.g when the orientation of the
device has changed, in order to re-set the adapter and re-register the listener.adapter - The adapter, which should be set, as an instance of the type ListAdapter. The
adapter may not be nulllistener - The listener, which should be notified, when an item is clicked, as an instance of
the type DialogInterface.OnClickListener or null, if no listener should be
notifiedvoid setSingleChoiceItems(java.lang.CharSequence[] items,
int checkedItem,
android.content.DialogInterface.OnClickListener listener)
onSaveInstanceState-method, because it is not serializable. Therefore this
method must be called again after configuration changes, e.g when the orientation of the
device has changed, in order to re-register the listener.items - The items, which should be set, as an array of the type CharSequence. The
items may not be nullcheckedItem - The index of the item, which should be selected by default, as an Integer
value or -1, if no item should be selected by defaultlistener - The listener, which should be notified, when an item is clicked, as an instance of
the type DialogInterface.OnClickListener or null, if no listener should be
notifiedvoid setSingleChoiceItems(int resourceId,
int checkedItem,
android.content.DialogInterface.OnClickListener listener)
onSaveInstanceState-method, because it is not serializable. Therefore this
method must be called again after configuration changes, e.g when the orientation of the
device has changed, in order to re-register the listener.resourceId - The resource id of the items, which should be set, as an Integer value. The
resource id must correspond to a valid array resourcecheckedItem - The index of the item, which should be selected by default, as an Integer
value or -1, if no item should be selected by defaultlistener - The listener, which should be notified, when an item is clicked, as an instance of
the type DialogInterface.OnClickListener or null, if no listener should be
notifiedvoid setSingleChoiceItems(android.widget.ListAdapter adapter,
int checkedItem,
android.content.DialogInterface.OnClickListener listener)
onSaveInstanceState-method, because they are not serializable. Therefore this
method must be called again after configuration changes, e.g when the orientation of the
device has changed, in order to re-set the adapter and re-register the listener.adapter - The adapter, which should be set, as an instance of the type ListAdapter. The
adapter may not be nullcheckedItem - The index of the item, which should be selected by default, as an Integer
value or -1, if no item should be selected by defaultlistener - The listener, which should be notified, when an item is clicked, as an instance of
the type DialogInterface.OnClickListener or null, if no listener should be
notifiedvoid setMultiChoiceItems(java.lang.CharSequence[] items,
boolean[] checkedItems,
android.content.DialogInterface.OnMultiChoiceClickListener listener)
onSaveInstanceState-method, because it is not serializable. Therefore this
method must be called again after configuration changes, e.g when the orientation of the
device has changed, in order to re-register the listener.items - The items, which should be set, as an array of the type CharSequence. The
items may not be nullcheckedItems - An array, which contains, whether the items, which correspond to the corresponding
indices, should be selected by default, or not, as a Boolean array or null,
if no items should be selected by defaultlistener - The listener, which should be notified, when an item is clicked, as an instance of
the type DialogInterface.OnMultiChoiceClickListener or null, if no listener
should be notifiedvoid setMultiChoiceItems(int resourceId,
boolean[] checkedItems,
android.content.DialogInterface.OnMultiChoiceClickListener listener)
onSaveInstanceState-method, because it is not serializable. Therefore this
method must be called again after configuration changes, e.g when the orientation of the
device has changed, in order to re-register the listener.resourceId - The resource id of the items, which should be set, as an Integer value. The
resource id must correspond to a valid array resourcecheckedItems - An array, which contains, whether the items, which correspond to the corresponding
indices, should be selected by default, or not, as a Boolean array or null,
if no items should be selected by defaultlistener - The listener, which should be notified, when an item is clicked, as an instance of
the type DialogInterface.OnMultiChoiceClickListener or null, if no listener
should be notifiedvoid setMultiChoiceItems(android.widget.ListAdapter adapter,
boolean[] checkedItems,
android.content.DialogInterface.OnMultiChoiceClickListener listener)
onSaveInstanceState-method, because they are not serializable. Therefore this
method must be called again after configuration changes, e.g when the orientation of the
device has changed, in order to re-set the adapter and re-register the listener.adapter - The adapter, which should be set, as an instance of the type ListAdapter. The
adapter may not be nullcheckedItems - An array, which contains, whether the items, which correspond to the corresponding
indices, should be selected by default, or not, as a Boolean array or null,
if no items should be selected by defaultlistener - The listener, which should be notified, when an item is clicked, as an instance of
the type DialogInterface.OnMultiChoiceClickListener or null, if no listener
should be notifiedvoid setOnItemSelectedListener(android.widget.AdapterView.OnItemSelectedListener listener)
onSaveInstanceState-method, because it is not serializable. Therefore this
method must be called again after configuration changes, e.g when the orientation of the
device has changed, in order to re-register the listener.listener - The listener, which should be set, as an instance of the type AdapterView.OnItemSelectedListener or null, if no listener should be notified