public class AlertDialog extends Dialog implements DialogInterface
| Modifier and Type | Class and Description |
|---|---|
static class |
AlertDialog.Builder |
DialogInterface.OnCancelListener, DialogInterface.OnClickListener, DialogInterface.OnDismissListener, DialogInterface.OnKeyListener, DialogInterface.OnMultiChoiceClickListener, DialogInterface.OnShowListener| Modifier and Type | Field and Description |
|---|---|
static int |
THEME_DEVICE_DEFAULT_DARK |
static int |
THEME_DEVICE_DEFAULT_LIGHT |
static int |
THEME_HOLO_DARK |
static int |
THEME_HOLO_LIGHT |
static int |
THEME_TRADITIONAL |
BUTTON_NEGATIVE, BUTTON_NEUTRAL, BUTTON_POSITIVE, BUTTON1, BUTTON2, BUTTON3| Modifier | Constructor and Description |
|---|---|
protected |
AlertDialog(Context context) |
protected |
AlertDialog(Context context,
boolean cancelable,
DialogInterface.OnCancelListener cancelListener) |
protected |
AlertDialog(Context context,
int theme) |
| Modifier and Type | Method and Description |
|---|---|
Button |
getButton(int whichButton) |
ListView |
getListView() |
protected void |
onCreate(Bundle savedInstanceState) |
boolean |
onKeyDown(int keyCode,
KeyEvent event) |
boolean |
onKeyUp(int keyCode,
KeyEvent event) |
void |
setButton(CharSequence text,
DialogInterface.OnClickListener listener)
Deprecated.
|
void |
setButton(CharSequence text,
Message msg)
Deprecated.
|
void |
setButton(int whichButton,
CharSequence text,
DialogInterface.OnClickListener listener) |
void |
setButton(int whichButton,
CharSequence text,
Message msg) |
void |
setButton2(CharSequence text,
DialogInterface.OnClickListener listener)
Deprecated.
|
void |
setButton2(CharSequence text,
Message msg)
Deprecated.
|
void |
setButton3(CharSequence text,
DialogInterface.OnClickListener listener)
Deprecated.
|
void |
setButton3(CharSequence text,
Message msg)
Deprecated.
|
void |
setCustomTitle(View customTitleView) |
void |
setIcon(Drawable icon) |
void |
setIcon(int resId) |
void |
setIconAttribute(int attrId) |
void |
setInverseBackgroundForced(boolean forceInverseBackground) |
void |
setMessage(CharSequence message) |
void |
setTitle(CharSequence title) |
void |
setView(View view) |
void |
setView(View view,
int viewSpacingLeft,
int viewSpacingTop,
int viewSpacingRight,
int viewSpacingBottom) |
addContentView, cancel, closeOptionsMenu, dismiss, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, getVolumeControlStream, getWindow, hide, invalidateOptionsMenu, isShowing, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onGenericMotionEvent, onKeyLongPress, onKeyMultiple, onKeyShortcut, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onStart, onStop, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, setCancelable, setCanceledOnTouchOutside, setCancelMessage, setContentView, setContentView, setContentView, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setTitle, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenuclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, dismisspublic static final int THEME_TRADITIONAL
public static final int THEME_HOLO_DARK
public static final int THEME_HOLO_LIGHT
public static final int THEME_DEVICE_DEFAULT_DARK
public static final int THEME_DEVICE_DEFAULT_LIGHT
protected AlertDialog(Context context)
protected AlertDialog(Context context, int theme)
protected AlertDialog(Context context, boolean cancelable, DialogInterface.OnCancelListener cancelListener)
public Button getButton(int whichButton)
public ListView getListView()
public void setTitle(CharSequence title)
public void setCustomTitle(View customTitleView)
public void setMessage(CharSequence message)
public void setView(View view)
public void setView(View view, int viewSpacingLeft, int viewSpacingTop, int viewSpacingRight, int viewSpacingBottom)
public void setButton(int whichButton,
CharSequence text,
Message msg)
public void setButton(int whichButton,
CharSequence text,
DialogInterface.OnClickListener listener)
@Deprecated public void setButton(CharSequence text, Message msg)
@Deprecated public void setButton2(CharSequence text, Message msg)
@Deprecated public void setButton3(CharSequence text, Message msg)
@Deprecated public void setButton(CharSequence text, DialogInterface.OnClickListener listener)
@Deprecated public void setButton2(CharSequence text, DialogInterface.OnClickListener listener)
@Deprecated public void setButton3(CharSequence text, DialogInterface.OnClickListener listener)
public void setIcon(int resId)
public void setIcon(Drawable icon)
public void setIconAttribute(int attrId)
public void setInverseBackgroundForced(boolean forceInverseBackground)
public boolean onKeyDown(int keyCode,
KeyEvent event)
onKeyDown in interface KeyEvent.CallbackonKeyDown in class Dialogpublic boolean onKeyUp(int keyCode,
KeyEvent event)
onKeyUp in interface KeyEvent.CallbackonKeyUp in class DialogCopyright © 2008-2013. All Rights Reserved.