AlertActivitypublic abstract class AlertActivity extends android.app.Activity implements android.content.DialogInterfaceAn activity that follows the visual style of an AlertDialog. |
Fields Summary |
---|
protected AlertController | mAlertThe model for the alert. | protected AlertController.AlertParams | mAlertParamsThe parameters for the alert. |
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();
}
| 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();
|
|