java.lang.Object | ||
↳ | android.app.Dialog | |
↳ | android.support.v7.app.AppCompatDialog |
Known Direct Subclasses |
Known Indirect Subclasses |
Base class for AppCompat themed Dialog
s.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.content.DialogInterface
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add an additional content view to the screen.
| |||||||||||
Support library version of
getActionBar() .
| |||||||||||
Called when a support action mode has finished.
| |||||||||||
Called when a support action mode has been started.
| |||||||||||
Called when a support action mode is being started for this window.
| |||||||||||
Set the screen content from a layout resource.
| |||||||||||
Set the screen content to an explicit view.
| |||||||||||
Set the screen content to an explicit view.
| |||||||||||
Set the title text for this dialog's window.
| |||||||||||
Set the title text for this dialog's window.
| |||||||||||
Enable extended support library window features.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Similar to
onCreate(Bundle) , you should initialize your dialog
in this method, including calling setContentView(View) .
| |||||||||||
Called to tell you that you're stopping.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.app.Dialog
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.content.DialogInterface
| |||||||||||
From interface
android.view.Window.Callback
| |||||||||||
From interface
android.view.KeyEvent.Callback
| |||||||||||
From interface
android.view.View.OnCreateContextMenuListener
| |||||||||||
From interface
android.support.v7.app.AppCompatCallback
|
Add an additional content view to the screen. Added after any existing ones in the screen -- existing views are NOT removed.
view | The desired content to display. |
---|---|
params | Layout parameters for the view. |
Support library version of getActionBar()
.
Retrieve a reference to this dialog's ActionBar.
Called when a support action mode has finished.
mode | The action mode that just finished. |
---|
Called when a support action mode has been started.
mode | The new action mode. |
---|
Called when a support action mode is being started for this window. Gives the callback an opportunity to handle the action mode in its own unique and beautiful way. If this method returns null the system can choose a way to present the mode or choose not to start the mode at all.
callback | Callback to control the lifecycle of this action mode |
---|
Set the screen content from a layout resource. The resource will be inflated, adding all top-level views to the screen.
layoutResID | Resource ID to be inflated. |
---|
Set the screen content to an explicit view. This view is placed directly into the screen's view hierarchy. It can itself be a complex view hierarchy.
view | The desired content to display. |
---|
Set the screen content to an explicit view. This view is placed directly into the screen's view hierarchy. It can itself be a complex view hierarhcy.
view | The desired content to display. |
---|---|
params | Layout parameters for the view. |
Set the title text for this dialog's window.
title | The new text to display in the title. |
---|
Set the title text for this dialog's window. The text is retrieved from the resources with the supplied identifier.
titleId | the title's text resource identifier |
---|
Enable extended support library window features.
This is a convenience for calling
getWindow().requestFeature()
.
featureId | The desired feature as defined in Window or
WindowCompat . |
---|
Similar to onCreate(Bundle)
, you should initialize your dialog
in this method, including calling setContentView(View)
.
savedInstanceState | If this dialog is being reinitalized after a
the hosting activity was previously shut down, holds the result from
the most recent call to onSaveInstanceState() , or null if this
is the first time.
|
---|
Called to tell you that you're stopping.