java.lang.Object | |
↳ | com.htc.widget.HtcAlertDialog.Builder |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
P |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor using a context for this builder and the
HtcAlertDialog it creates. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a
HtcAlertDialog with the arguments supplied to this builder. | |||||||||||
Sets a list of items, which are supplied by the given
ListAdapter , to be
displayed in the dialog as the content, you will be notified of the
selected item via the supplied listener. | |||||||||||
Sets whether the dialog is cancelable or not default is true.
| |||||||||||
Sets a list of items, which are supplied by the given
Cursor , to be
displayed in the dialog as the content, you will be notified of the
selected item via the supplied listener. | |||||||||||
Sets the title using the custom view
customTitleView . | |||||||||||
Sets the
Drawable to be used in the title. | |||||||||||
Sets the resource id of the
Drawable to be used in the title. | |||||||||||
Sets the Dialog to use the inverse background, regardless of what the
contents is.
| |||||||||||
This api is for enable AutoMotive mode
When you call this api, your activity must lock at landscape mode always.
| |||||||||||
Sets 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.
| |||||||||||
Sets 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.
| |||||||||||
Sets the message to display.
| |||||||||||
Sets the message to display using the given resource id.
| |||||||||||
Sets 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.
| |||||||||||
Sets 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.
| |||||||||||
Sets 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.
| |||||||||||
Sets a listener to be invoked when the negative button of the dialog is pressed.
| |||||||||||
Sets a listener to be invoked when the negative button of the dialog is pressed.
| |||||||||||
Disables the Dialog negative button
| |||||||||||
Sets a listener to be invoked when the neutral button of the dialog is pressed.
| |||||||||||
Sets a listener to be invoked when the neutral button of the dialog is pressed.
| |||||||||||
Disables the Dialog neutral button
| |||||||||||
Sets the callback that will be called if the dialog is canceled.
| |||||||||||
Sets a listener to be invoked when an item in the list is selected.
| |||||||||||
Sets the callback that will be called if a key is dispatched to the dialog.
| |||||||||||
Sets a listener to be invoked when the positive button of the dialog is pressed.
| |||||||||||
Sets a listener to be invoked when the positive button of the dialog is pressed.
| |||||||||||
Disables the Dialog positive button
| |||||||||||
Sets 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.
| |||||||||||
Sets 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.
| |||||||||||
Sets 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.
| |||||||||||
Sets 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.
| |||||||||||
Sets the title displayed in the
Dialog . | |||||||||||
Sets the title using the given resource id.
| |||||||||||
Sets the Dialog to enable title center
| |||||||||||
Sets the Dialog title divider visibility
| |||||||||||
Sets a custom view to be the contents of the Dialog, specifying the
spacing to appear around that view.
| |||||||||||
Sets a custom view to be the contents of the Dialog.
| |||||||||||
Creates a
HtcAlertDialog with the arguments supplied to this builder and
show() 's the dialog. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructor using a context for this builder and the HtcAlertDialog
it creates.
Creates a HtcAlertDialog
with the arguments supplied to this builder. It does not
show()
the dialog. This allows the user to do any extra processing
before displaying the dialog. Use show()
if you don't have any other processing
to do and want this to be created and displayed.
Sets a list of items, which are supplied by the given ListAdapter
, to be
displayed in the dialog as the content, you will be notified of the
selected item via the supplied listener.
adapter | The ListAdapter to supply the list of items |
---|---|
listener | The listener that will be called when an item is clicked. |
Sets whether the dialog is cancelable or not default is true.
Sets a list of items, which are supplied by the given Cursor
, to be
displayed in the dialog as the content, you will be notified of the
selected item via the supplied listener.
cursor | The Cursor to supply the list of items |
---|---|
listener | The listener that will be called when an item is clicked. |
labelColumn | The column name on the cursor containing the string to display in the label. |
Sets the title using the custom view customTitleView
. The
methods setTitle(int)
and setIcon(int)
should be
sufficient for most titles, but this is provided if the title needs
more customization. Using this will replace the title and icon set
via the other methods.
customTitleView | The custom view to use as the title. |
---|
Sets the Drawable
to be used in the title.
Sets the resource id of the Drawable
to be used in the title.
Sets the Dialog to use the inverse background, regardless of what the contents is.
useInverseBackground | Whether to use the inverse background |
---|
This api is for enable AutoMotive mode When you call this api, your activity must lock at landscape mode always. otherwise will have exception. And you also can not call this at landscape and rotate your activity to portrait mode. This will cause HtcAlertDialog truncate.
Sets 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 i.e. R.array.foo
Sets 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.
Sets the message to display.
Sets the message to display using the given resource id.
Sets 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.
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 | 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. |
Sets 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.
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 | 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. |
Sets 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.
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 | 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. |
Sets a listener to be invoked when the negative button of the dialog is pressed.
text | The text to display in the negative button |
---|---|
listener | The DialogInterface.OnClickListener to use. |
Sets a listener to be invoked when the negative button of the dialog is pressed.
textId | The resource id of the text to display in the negative button |
---|---|
listener | The DialogInterface.OnClickListener to use. |
Disables the Dialog negative button
disabled | Whether to disabled negative button |
---|
Sets a listener to be invoked when the neutral button of the dialog is pressed.
textId | The resource id of the text to display in the neutral button |
---|---|
listener | The DialogInterface.OnClickListener to use. |
Sets a listener to be invoked when the neutral button of the dialog is pressed.
text | The text to display in the neutral button |
---|---|
listener | The DialogInterface.OnClickListener to use. |
Disables the Dialog neutral button
disabled | Whether to disabled neutral button |
---|
Sets the callback that will be called if the dialog is canceled.
Sets a listener to be invoked when an item in the list is selected.
listener | The listener to be invoked. |
---|
Sets the callback that will be called if a key is dispatched to the dialog.
Sets a listener to be invoked when the positive button of the dialog is pressed.
textId | The resource id of the text to display in the positive button |
---|---|
listener | The DialogInterface.OnClickListener to use. |
Sets a listener to be invoked when the positive button of the dialog is pressed.
text | The text to display in the positive button |
---|---|
listener | The DialogInterface.OnClickListener to use. |
Disables the Dialog positive button
disabled | Whether to disabled positive button |
---|
Sets 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 the checked item. Clicking on an item in the list will not dismiss the dialog. Clicking on a button will dismiss the dialog.
items | The items to be displayed. |
---|---|
checkedItem | Specifies which item is checked. If -1 no items are checked. |
listener | 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. |
Sets 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 the checked item. Clicking on an item in the list will not dismiss the dialog. Clicking on a button will dismiss the dialog.
adapter | The ListAdapter to supply the list of items |
---|---|
checkedItem | Specifies which item is checked. If -1 no items are checked. |
listener | 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. |
Sets 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 i.e. R.array.foo The list will have a check mark displayed to the right of the text for the checked item. Clicking on an item in the list will not dismiss the dialog. Clicking on a button will dismiss the dialog.
itemsId | The resource id of an array i.e. R.array.foo |
---|---|
checkedItem | Specifies which item is checked. If -1 no items are checked. |
listener | 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. |
Sets 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 the checked item. Clicking on an item in the list will not dismiss the dialog. Clicking on a button will dismiss the dialog.
cursor | The cursor to retrieve the items from. |
---|---|
checkedItem | Specifies which item is checked. If -1 no items are checked. |
labelColumn | The column name on the cursor containing the string to display in the label. |
listener | 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. |
Sets the title displayed in the Dialog
.
Sets the title using the given resource id.
Sets the Dialog to enable title center
enable | Whether to enable title center |
---|
Sets the Dialog title divider visibility
visible | The visiblity of title divider |
---|
Sets a custom view to be the contents of the Dialog, specifying the
spacing to appear around that view. If the supplied view is an
instance of a ListView
the light background will be used.
view | The view to use as the contents of the Dialog. |
---|---|
viewSpacingLeft | Spacing between the left edge of the view and the dialog frame |
viewSpacingTop | Spacing between the top edge of the view and the dialog frame |
viewSpacingRight | Spacing between the right edge of the view and the dialog frame |
viewSpacingBottom | Spacing between the bottom edge of the view and the dialog frame |
Sets a custom view to be the contents of the Dialog. If the supplied view is an instance
of a ListView
the light background will be used.
view | The view to use as the contents of the Dialog. |
---|
Creates a HtcAlertDialog
with the arguments supplied to this builder and
show()
's the dialog.