public class BGAAlertController
extends android.app.Dialog
implements android.view.View.OnClickListener, android.content.DialogInterface.OnShowListener
| 限定符和类型 | 类和说明 |
|---|---|
static class |
BGAAlertController.AlertControllerStyle |
android.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnClickListener, android.content.DialogInterface.OnDismissListener, android.content.DialogInterface.OnKeyListener, android.content.DialogInterface.OnMultiChoiceClickListener, android.content.DialogInterface.OnShowListener| 构造器和说明 |
|---|
BGAAlertController(android.app.Activity activity,
java.lang.String title,
java.lang.String message,
BGAAlertController.AlertControllerStyle preferredStyle) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addAction(BGAAlertAction alertAction)
不管添加顺序怎样,AlertActionStyle.Cancel始终是在最底部的,AlertActionStyle.Default和AlertActionStyle.Destructive按添加的先后顺序显示
|
void |
cancel() |
void |
dismiss() |
void |
onClick(android.view.View v) |
void |
onShow(android.content.DialogInterface dialog) |
addContentView, closeOptionsMenu, create, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, getSearchEvent, getVolumeControlStream, getWindow, hide, invalidateOptionsMenu, isShowing, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreate, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onSearchRequested, onStart, onStop, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, setCancelable, setCanceledOnTouchOutside, setCancelMessage, setContentView, setContentView, setContentView, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setTitle, setTitle, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenupublic BGAAlertController(android.app.Activity activity,
java.lang.String title,
java.lang.String message,
BGAAlertController.AlertControllerStyle preferredStyle)
public void onShow(android.content.DialogInterface dialog)
onShow 在接口中 android.content.DialogInterface.OnShowListenerpublic void onClick(android.view.View v)
onClick 在接口中 android.view.View.OnClickListenerpublic void cancel()
cancel 在接口中 android.content.DialogInterfacecancel 在类中 android.app.Dialogpublic void dismiss()
dismiss 在接口中 android.content.DialogInterfacedismiss 在类中 android.app.Dialogpublic void addAction(BGAAlertAction alertAction)
alertAction -