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.

For more information, see the component developer guidance and design guidelines.

Summary

Inherited constants

Public constructors

BottomSheetDialogFragment()
BottomSheetDialogFragment(int contentLayoutId)

Public methods

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

Inherited methods

Public constructors

BottomSheetDialogFragment

public BottomSheetDialogFragment ()

BottomSheetDialogFragment

public BottomSheetDialogFragment (int contentLayoutId)

Parameters
contentLayoutId int

Public methods

dismiss

public void dismiss ()

dismissAllowingStateLoss

public void dismissAllowingStateLoss ()

onCreateDialog

public Dialog onCreateDialog (Bundle savedInstanceState)

Parameters
savedInstanceState Bundle

Returns
Dialog