public class BGAAlertController extends Dialog implements View.OnClickListener, DialogInterface.OnShowListener
| 限定符和类型 | 类和说明 |
|---|---|
static class |
BGAAlertController.AlertControllerStyle |
BUTTON_NEGATIVE, BUTTON_NEUTRAL, BUTTON_POSITIVE, BUTTON1, BUTTON2, BUTTON3| 构造器和说明 |
|---|
BGAAlertController(Activity activity,
String title,
String message,
BGAAlertController.AlertControllerStyle preferredStyle) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addAction(BGAAlertAction alertAction)
不管添加顺序怎样,AlertActionStyle.Cancel始终是在最底部的,AlertActionStyle.Default和AlertActionStyle.Destructive按添加的先后顺序显示
|
void |
cancel() |
void |
dismiss() |
static int |
getScreenHeight(Context context) |
static int |
getStatusBarHeight(Context context) |
void |
onClick(View v) |
void |
onShow(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(Activity activity, String title, String message, BGAAlertController.AlertControllerStyle preferredStyle)
public void onShow(DialogInterface dialog)
onShow 在接口中 DialogInterface.OnShowListenerpublic void onClick(View v)
onClick 在接口中 View.OnClickListenerpublic void cancel()
cancel 在接口中 DialogInterfacecancel 在类中 Dialogpublic void dismiss()
dismiss 在接口中 DialogInterfacedismiss 在类中 Dialogpublic void addAction(BGAAlertAction alertAction)
alertAction - public static int getStatusBarHeight(Context context)
public static int getScreenHeight(Context context)