AppCompatDialog
open class AppCompatDialog : Dialog, AppCompatCallback
kotlin.Any | ||
↳ | android.app.Dialog | |
↳ | androidx.appcompat.app.AppCompatDialog |
Base class for AppCompat themed android.app.Dialog
s.
Summary
Public constructors | |
---|---|
Protected constructors | |
---|---|
<init>(context: Context!, cancelable: Boolean, cancelListener: OnCancelListener!) |
Public methods | |
---|---|
open Unit |
addContentView(view: View, params: LayoutParams?) |
open Unit |
dismiss() |
open Boolean |
dispatchKeyEvent(event: KeyEvent) |
open T? |
findViewById(@IdRes id: Int) |
open AppCompatDelegate! | |
open ActionBar! |
Support library version of |
open Unit | |
open Unit |
onSupportActionModeStarted(mode: ActionMode!) |
open ActionMode? |
onWindowStartingSupportActionMode(callback: ActionMode.Callback!) |
open Unit |
setContentView(@LayoutRes layoutResID: Int) |
open Unit |
setContentView(view: View) |
open Unit |
setContentView(view: View, params: LayoutParams?) |
open Unit |
setTitle(title: CharSequence?) |
open Unit | |
open Boolean |
supportRequestWindowFeature(featureId: Int) Enable extended support library window features. |
Protected methods | |
---|---|
open Unit | |
open Unit |
onStop() |
Public constructors
<init>
AppCompatDialog(context: Context!)
Protected constructors
<init>
protected AppCompatDialog(
context: Context!,
cancelable: Boolean,
cancelListener: OnCancelListener!)
Public methods
addContentView
open fun addContentView(
view: View,
params: LayoutParams?
): Unit
dismiss
open fun dismiss(): Unit
getDelegate
open fun getDelegate(): AppCompatDelegate!
Return | |
---|---|
AppCompatDelegate! |
The AppCompatDelegate being used by this Dialog. |
getSupportActionBar
open fun getSupportActionBar(): ActionBar!
Support library version of android.app.Dialog#getActionBar
.
Retrieve a reference to this dialog's ActionBar.
Return | |
---|---|
ActionBar! |
The Dialog's ActionBar, or null if it does not have one. |
onSupportActionModeFinished
open fun onSupportActionModeFinished(mode: ActionMode!): Unit
onSupportActionModeStarted
open fun onSupportActionModeStarted(mode: ActionMode!): Unit
onWindowStartingSupportActionMode
@Nullable open fun onWindowStartingSupportActionMode(callback: ActionMode.Callback!): ActionMode?
setContentView
open fun setContentView(
view: View,
params: LayoutParams?
): Unit
setTitle
open fun setTitle(title: CharSequence?): Unit
supportRequestWindowFeature
open fun supportRequestWindowFeature(featureId: Int): Boolean
Enable extended support library window features.
This is a convenience for calling getWindow().requestFeature()
.
Parameters | |
---|---|
featureId |
Int: The desired feature as defined in android.view.Window or androidx.core.view.WindowCompat . |
Return | |
---|---|
Boolean |
Returns true if the requested feature is supported and now enabled. |
Protected methods
onStop
protected open fun onStop(): Unit