java.lang.Object | ||
↳ | android.app.Dialog | |
↳ | android.support.v7.app.AppCompatDialog |
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.
| |||||||||||
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. |
---|
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 hierarhcy.
view | The desired content to display. |
---|---|
params | Layout parameters for the view. |
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 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 |
---|
Set the title text for this dialog's window.
title | The new text to display in the title. |
---|
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.