Added Methods
|
void closeOptionsMenu()
|
@see Activity#closeOptionsMenu() |
LayoutInflater getLayoutInflater()
|
|
Activity getOwnerActivity()
|
Returns the Activity that owns this Dialog. |
int getVolumeControlStream()
|
@see Activity#getVolumeControlStream() |
void hide()
|
Hide the dialog, but do not dismiss it. |
boolean isShowing()
|
@return Whether the dialog is currently showing. |
boolean onContextItemSelected(MenuItem )
|
@see Activity#onContextItemSelected(MenuItem) |
void onContextMenuClosed(Menu )
|
@see Activity#onContextMenuClosed(Menu) |
void onCreate(Bundle )
|
Similar to Activity.onCreate, you should initialized your dialog
in this method, including calling .setContentView. |
void onCreateContextMenu(ContextMenu, View, ContextMenuInfo)
|
@see Activity#onCreateContextMenu(ContextMenu, View, ContextMenuInfo) |
boolean onCreateOptionsMenu(Menu )
|
It is usually safe to proxy this call to the owner activity's
Activity.onCreateOptionsMenu(Menu) if the client desires the same
menu for this Dialog. |
boolean onMenuOpened(int, Menu)
|
@see Activity#onMenuOpened(int, Menu) |
boolean onOptionsItemSelected(MenuItem )
|
@see Activity#onOptionsItemSelected(MenuItem) |
void onOptionsMenuClosed(Menu )
|
@see Activity#onOptionsMenuClosed(Menu) |
boolean onPrepareOptionsMenu(Menu )
|
It is usually safe to proxy this call to the owner activity's
Activity.onPrepareOptionsMenu(Menu) if the client desires the
same menu for this Dialog. |
void onRestoreInstanceState(Bundle )
|
Restore the state of the dialog from a previously saved bundle. |
Bundle onSaveInstanceState()
|
Saves the state of the dialog into a bundle. |
void openContextMenu(View )
|
@see Activity#openContextMenu(View) |
void openOptionsMenu()
|
@see Activity#openOptionsMenu() |
void registerForContextMenu(View )
|
@see Activity#registerForContextMenu(View) |
void setCanceledOnTouchOutside(boolean )
|
Sets whether this dialog is canceled when touched outside the window's
bounds. |
void setDismissMessage(Message )
|
Set a message to be sent when the dialog is dismissed. |
void setOnCancelListener(OnCancelListener )
|
Set a listener to be invoked when the dialog is canceled. |
void setOnDismissListener(OnDismissListener )
|
Set a listener to be invoked when the dialog is dismissed. |
void setOnKeyListener(OnKeyListener )
|
Sets the callback that will be called if a key is dispatched to the dialog. |
void setOwnerActivity(Activity )
|
Sets the Activity that owns this dialog. |
void setVolumeControlStream(int )
|
By default, this will use the owner Activity's suggested stream type. |
void unregisterForContextMenu(View )
|
@see Activity#unregisterForContextMenu(View) |