Lines Matching defs:dialog

43  * dialog-based. These preferences will, when clicked, open a dialog showing the
65 /** The dialog, if it is showing. */
105 * Sets the title of the dialog. This will be shown on subsequent dialogs.
115 * @param dialogTitleResId The dialog title as a resource.
130 * Sets the message of the dialog. This will be shown on subsequent dialogs.
132 * This message forms the content View of the dialog and conflicts with
133 * list-based dialogs, for example. If setting a custom View on a dialog via
145 * @param dialogMessageResId The dialog message as a resource.
160 * Sets the icon of the dialog. This will be shown on subsequent dialogs.
169 * Sets the icon (resource ID) of the dialog. This will be shown on
187 * Sets the text of the positive button of the dialog. This will be shown on
215 * Sets the text of the negative button of the dialog. This will be shown on
264 * Prepares the dialog builder to be shown when the preference is clicked.
265 * Use this to set custom properties on the dialog.
281 * Shows the dialog associated with this Preference. This is normally initiated
283 * show the dialog on some other event.
285 * @param state Optional instance state to restore on the dialog
310 // Create the dialog
311 final Dialog dialog = mDialog = mBuilder.create();
313 dialog.onRestoreInstanceState(state);
316 requestInputMethod(dialog);
318 dialog.setOnDismissListener(this);
319 dialog.show();
323 * Returns whether the preference needs to display a soft input method when the dialog
333 * Sets the required flags on the dialog window to enable input method window to show up.
335 private void requestInputMethod(Dialog dialog) {
336 Window window = dialog.getWindow();
341 * Creates the content view for the dialog (if a custom content view is
342 * required). By default, it inflates the dialog layout resource if it is
345 * @return The content View for the dialog.
358 * Binds views in the content View of the dialog to data.
362 * @param view The content View of the dialog, if it is custom.
386 public void onClick(DialogInterface dialog, int which) {
390 public void onDismiss(DialogInterface dialog) {
399 * Called when the dialog is dismissed and should be used to save data to
403 * the negative button was clicked or the dialog was canceled (false).
409 * Gets the dialog that is shown by this preference.
411 * @return The dialog, or null if a dialog is not being shown.