java.lang.Object | |
↳ | com.htc.app.HtcAlertController |
A view containing controls for an Htc style AlertDialog.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
HtcAlertController.AlertParams | The parameters for the alert. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets content view.
| |||||||||||
Sets a click listener or a message to be sent when the button is clicked.
| |||||||||||
Sets resId to 0 if you don't want an icon.
| |||||||||||
Sets the view to display in the dialog along with the spacing around that view
| |||||||||||
Sets the view to display in the dialog.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Sets content view. We use a custom title so never request a window title
Sets a click listener or a message to be sent when the button is clicked.
You only need to pass one of listener
or msg
.
whichButton | Which button, can be one of
BUTTON_POSITIVE ,
BUTTON_NEGATIVE , or
BUTTON_NEUTRAL |
---|---|
text | The text to display in positive button. |
listener | The DialogInterface.OnClickListener to use. |
msg | The Message to be sent when clicked.
|
Sets resId to 0 if you don't want an icon.
resId | The resourceId of the drawable to use as the icon or 0 if you don't want an icon. |
---|
Sets the view to display in the dialog along with the spacing around that view