public class

HtcAlertController

extends Object
java.lang.Object
   ↳ com.htc.dialog.HtcAlertController

Summary

Nested Classes
class HtcAlertController.AlertParams  
Public Constructors
HtcAlertController(Context context, DialogInterface di, Window window)
Public Methods
Button getButton(int whichButton)
ListView getListView()
void installContent()
boolean onKeyDown(int keyCode, KeyEvent event)
boolean onKeyUp(int keyCode, KeyEvent event)
void setButton(int whichButton, CharSequence text, DialogInterface.OnClickListener listener, Message msg)
Sets a click listener or a message to be sent when the button is clicked.
void setButtonDisabled(int whichButton, boolean disabled)
void setCustomTitle(View customTitleView)
void setIcon(Drawable icon)
void setIcon(int resId)
Set resId to 0 if you don't want an icon.
void setInverseBackgroundForced(boolean forceInverseBackground)
void setMessage(CharSequence message)
void setTitle(CharSequence title)
void setTitleCenterEnabled(boolean enable)
void setTitleDividerVisible(boolean visible)
void setView(View view, int viewSpacingLeft, int viewSpacingTop, int viewSpacingRight, int viewSpacingBottom)
Set the view to display in the dialog along with the spacing around that view
void setView(View view)
Set the view to display in the dialog.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public HtcAlertController (Context context, DialogInterface di, Window window)

Public Methods

public Button getButton (int whichButton)

public ListView getListView ()

public void installContent ()

public boolean onKeyDown (int keyCode, KeyEvent event)

public boolean onKeyUp (int keyCode, KeyEvent event)

public void setButton (int whichButton, CharSequence text, DialogInterface.OnClickListener listener, Message msg)

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.

Parameters
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.

public void setButtonDisabled (int whichButton, boolean disabled)

public void setCustomTitle (View customTitleView)

public void setIcon (Drawable icon)

public void setIcon (int resId)

Set resId to 0 if you don't want an icon.

Parameters
resId the resourceId of the drawable to use as the icon or 0 if you don't want an icon.

public void setInverseBackgroundForced (boolean forceInverseBackground)

public void setMessage (CharSequence message)

public void setTitle (CharSequence title)

public void setTitleCenterEnabled (boolean enable)

public void setTitleDividerVisible (boolean visible)

public void setView (View view, int viewSpacingLeft, int viewSpacingTop, int viewSpacingRight, int viewSpacingBottom)

Set the view to display in the dialog along with the spacing around that view

public void setView (View view)

Set the view to display in the dialog.