Methods Summary |
---|
public void | cancel()
finish();
|
public void | dismiss()
// This is called after the click, since we finish when handling the
// click, don't do that again here.
if (!isFinishing()) {
finish();
}
|
public boolean | dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent event)
event.setClassName(Dialog.class.getName());
event.setPackageName(getPackageName());
ViewGroup.LayoutParams params = getWindow().getAttributes();
boolean isFullScreen = (params.width == ViewGroup.LayoutParams.MATCH_PARENT) &&
(params.height == ViewGroup.LayoutParams.MATCH_PARENT);
event.setFullScreen(isFullScreen);
return false;
|
protected void | onCreate(android.os.Bundle savedInstanceState)
super.onCreate(savedInstanceState);
mAlert = new AlertController(this, this, getWindow());
mAlertParams = new AlertController.AlertParams(this);
|
public boolean | onKeyDown(int keyCode, android.view.KeyEvent event)
if (mAlert.onKeyDown(keyCode, event)) return true;
return super.onKeyDown(keyCode, event);
|
public boolean | onKeyUp(int keyCode, android.view.KeyEvent event)
if (mAlert.onKeyUp(keyCode, event)) return true;
return super.onKeyUp(keyCode, event);
|
protected void | setupAlert()Sets up the alert, including applying the parameters to the alert model,
and installing the alert's content.
mAlertParams.apply(mAlert);
mAlert.installContent();
|