java.lang.Object | |
↳ | com.htc.dialog.HtcAlertController |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
HtcAlertController.AlertParams |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets a click listener or a message to be sent when the button is clicked.
| |||||||||||
Set resId to 0 if you don't want an icon.
| |||||||||||
Set the view to display in the dialog along with the spacing around that view
| |||||||||||
Set the view to display in the dialog.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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.
|
Set 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. |
---|
Set the view to display in the dialog along with the spacing around that view