Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

BottomSheetDialogFragment

public class BottomSheetDialogFragment
extends AppCompatDialogFragment

java.lang.Object
   ↳ androidx.fragment.app.Fragment
     ↳ androidx.fragment.app.DialogFragment
       ↳ androidx.appcompat.app.AppCompatDialogFragment
         ↳ com.google.android.material.bottomsheet.BottomSheetDialogFragment


Modal bottom sheet. This is a version of DialogFragment that shows a bottom sheet using BottomSheetDialog instead of a floating dialog.

Summary

Inherited constants

From class androidx.fragment.app.DialogFragment

Public constructors

BottomSheetDialogFragment()

Public methods

void dismiss()
void dismissAllowingStateLoss()
Dialog onCreateDialog(Bundle savedInstanceState)

Inherited methods

From class androidx.appcompat.app.AppCompatDialogFragment
From class androidx.fragment.app.DialogFragment
From class androidx.fragment.app.Fragment
From class java.lang.Object
From interface android.content.DialogInterface.OnCancelListener
From interface android.content.DialogInterface.OnDismissListener
From interface android.content.ComponentCallbacks
From interface android.view.View.OnCreateContextMenuListener
From interface androidx.lifecycle.LifecycleOwner
From interface androidx.lifecycle.ViewModelStoreOwner
From interface androidx.savedstate.SavedStateRegistryOwner

Public constructors

BottomSheetDialogFragment

BottomSheetDialogFragment ()

Public methods

dismiss

void dismiss ()

dismissAllowingStateLoss

void dismissAllowingStateLoss ()

onCreateDialog

Dialog onCreateDialog (Bundle savedInstanceState)

Parameters
savedInstanceState Bundle

Returns
Dialog