# BottomSheetDialogFragment

[View Source](https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/bottomsheet/BottomSheetDialogFragment.java)

*** ** * ** ***


```
public class BottomSheetDialogFragment
```

<br />

*** ** * ** ***

Modal bottom sheet. This is a version of androidx.fragment.app.DialogFragment that shows a bottom sheet using `https://developer.android.com/reference/com/google/android/material/bottomsheet/BottomSheetDialog` instead of a floating dialog.

For more information, see the [component developer guidance](https://github.com/material-components/material-components-android/blob/master/docs/components/BottomSheet.md) and [design guidelines](https://material.io/components/bottom-sheets/overview).

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/com/google/android/material/bottomsheet/BottomSheetDialogFragment#BottomSheetDialogFragment()()` |
| `https://developer.android.com/reference/com/google/android/material/bottomsheet/BottomSheetDialogFragment#BottomSheetDialogFragment(int)(int contentLayoutId)` |

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/com/google/android/material/bottomsheet/BottomSheetDialogFragment#dismiss()()` |
| `void` | `https://developer.android.com/reference/com/google/android/material/bottomsheet/BottomSheetDialogFragment#dismissAllowingStateLoss()()` |
| `Dialog` | `https://developer.android.com/reference/com/google/android/material/bottomsheet/BottomSheetDialogFragment#onCreateDialog(Bundle)(Bundle savedInstanceState)` |

## Public constructors

### BottomSheetDialogFragment

```
public BottomSheetDialogFragment()
```

### BottomSheetDialogFragment

```
public BottomSheetDialogFragment(int contentLayoutId)
```

## Public methods

### dismiss

```
public void dismiss()
```

### dismissAllowingStateLoss

```
public void dismissAllowingStateLoss()
```

### onCreateDialog

```
public Dialog onCreateDialog(Bundle savedInstanceState)
```