DialogFragment
open class DialogFragment : Fragment, OnCancelListener, OnDismissListener
kotlin.Any | ||
↳ | androidx.fragment.app.Fragment | |
↳ | androidx.fragment.app.DialogFragment |
Static library support version of the framework's android.app.DialogFragment
. Used to write apps that run on platforms prior to Android 3.0. When running on Android 3.0 or above, this implementation is still used; it does not try to switch to the framework's implementation. See the framework SDK documentation for a class overview.
Summary
Constants | |
---|---|
static Int |
Style for |
static Int |
Style for |
static Int |
Style for |
static Int |
Style for |
Public constructors | |
---|---|
<init>() Constructor used by the default |
|
Alternate constructor that can be called from your default, no argument constructor to provide a default layout that will be inflated by |
Public methods | |
---|---|
open Unit |
dismiss() Dismiss the fragment and its dialog. |
open Unit |
Version of |
open Dialog? |
Return the |
open Boolean |
Return the current value of |
open Int |
getTheme() |
open Boolean |
Return the current value of |
open Unit | |
open Unit |
onCancel(@NonNull dialog: DialogInterface) |
open Unit | |
open Dialog |
onCreateDialog(@Nullable savedInstanceState: Bundle?) Override to build your own custom Dialog container. |
open Unit |
Remove dialog. |
open Unit |
onDetach() |
open Unit |
onDismiss(@NonNull dialog: DialogInterface) |
open LayoutInflater |
onGetLayoutInflater(@Nullable savedInstanceState: Bundle?) Returns the LayoutInflater used to inflate Views of this Fragment. |
open Unit |
onSaveInstanceState(@NonNull outState: Bundle) |
open Unit |
onStart() |
open Unit |
onStop() |
open Unit |
onViewStateRestored(@Nullable savedInstanceState: Bundle?) |
Dialog |
Return the |
open Unit |
setCancelable(cancelable: Boolean) Control whether the shown Dialog is cancelable. |
open Unit |
setShowsDialog(showsDialog: Boolean) Controls whether this fragment should be shown in a dialog. |
open Unit |
Call to customize the basic appearance and behavior of the fragment's dialog. |
open Unit |
show(@NonNull manager: FragmentManager, @Nullable tag: String?) Display the dialog, adding the fragment to the given FragmentManager. |
open Int |
show(@NonNull transaction: FragmentTransaction, @Nullable tag: String?) Display the dialog, adding the fragment using an existing transaction and then |
open Unit |
showNow(@NonNull manager: FragmentManager, @Nullable tag: String?) Display the dialog, immediately adding the fragment to the given FragmentManager. |
Inherited functions | |
---|---|