Home | History | Annotate | Download | only in app

Lines Matching defs:Dialog

55  * {@link Activity#onPrepareDialog(int, Dialog)},
58 * that managed this dialog.
60 * <p>Often you will want to have a Dialog display on top of the current
64 * your Dialog takes input focus, as it the default) with the following code:
71 public class Dialog implements DialogInterface, Window.Callback,
90 * Whether to cancel the dialog when a touch is received outside of the
116 * Create a Dialog window that uses the default dialog frame style.
118 * @param context The Context the Dialog is to run it. In particular, it
122 public Dialog(Context context) {
127 * Create a Dialog window that uses a custom dialog style.
129 * @param context The Context in which the Dialog should run. In particular, it
136 * <var>context</var>. If 0, the default dialog theme will be used.
138 public Dialog(Context context, int theme) {
156 protected Dialog(Context context, boolean cancelable,
163 protected Dialog(Context context, boolean cancelable,
171 * Retrieve the Context this Dialog is running in.
180 * Sets the Activity that owns this dialog. An example use: This Dialog will
183 * @param activity The Activity that owns this dialog.
192 * Returns the Activity that owns this Dialog. For example, if
193 * {@link Activity#showDialog(int)} is used to show this Dialog, that
194 * Activity will be the owner (by default). Depending on how this dialog was
197 * @return The Activity that owns this Dialog.
204 * @return Whether the dialog is currently showing.
211 * Start the dialog and display it on screen. The window is placed in the
213 * method to do initialization when the dialog is shown, instead implement
250 * Hide the dialog, but do not dismiss it.
259 * Dismiss this dialog, removing it from the screen. This method can be
261 * method to do cleanup when the dialog is dismissed, instead implement
291 // Obtain a new message so this dialog can be re-used
298 // Obtain a new message so this dialog can be re-used
313 * Similar to {@link Activity#onCreate}, you should initialized your dialog
315 * @param savedInstanceState If this dialog is being reinitalized after a
324 * Called when the dialog is starting.
339 * Saves the state of the dialog into a bundle.
344 * @return A bundle with the state of the dialog.
356 * Restore the state of the dialog from a previously saved bundle.
358 * The default implementation restores the state of the dialog's view
362 * @param savedInstanceState The state of the dialog previously saved by
368 // dialog has never been shown, or onCreated, nothing to restore.
459 * Set the title text for this dialog's window.
469 * Set the title text for this dialog's window. The text is retrieved
511 * dialog.
535 * Called when the dialog has detected the user's press of the back
536 * key. The default implementation simply cancels the dialog (only if
552 * The default implementation will cancel the dialog when a touch
729 * menu for this Dialog.
741 * same menu for this Dialog.
836 * @return The activity associated with this dialog, or null if there is no assocaited activity.
855 * Request that key events come to this dialog. Use this if your
856 * dialog has no views with focus, but the dialog still wants
859 * @param get true if the dialog should receive key events, false otherwise
918 * Sets whether this dialog is cancelable with the
926 * Sets whether this dialog is canceled when touched outside the window's
927 * bounds. If setting to true, the dialog is set to be cancelable if not
930 * @param cancel Whether the dialog should be canceled when touched outside
942 * Cancel the dialog. This is essentially the same as calling {@link #dismiss()}, but it will
948 // Obtain a new message so this dialog can be re-used
955 * Set a listener to be invoked when the dialog is canceled.
957 * This will only be invoked when the dialog is canceled, if the creator
972 * Set a message to be sent when the dialog is canceled.
973 * @param msg The msg to send when the dialog is canceled.
981 * Set a listener to be invoked when the dialog is dismissed.
993 * Sets a listener to be invoked when the dialog is shown.
1005 * Set a message to be sent when the dialog is dismissed.
1006 * @param msg The msg to send when the dialog is dismissed.
1030 * Sets the callback that will be called if a key is dispatched to the dialog.
1039 public ListenersHandler(Dialog dialog) {
1040 mDialog = new WeakReference<DialogInterface>(dialog);