Skip to content

Commit 5e7e823

Browse files
nikclaytondsn5ft
authored andcommitted
[BottomSheet] Delete duplicate "Handling insets and fullscreen" section
Duplicate to L358-374. Resolves #4864 GIT_ORIGIN_REV_ID=84ed4dbe6fd64e69a16f84e9f56bd5b95a9df851 PiperOrigin-RevId: 785869465
1 parent 2f0935a commit 5e7e823

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

docs/components/BottomSheet.md

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -508,45 +508,6 @@ the [behavior attributes](#behavior-attributes) section.
508508

509509
</details>
510510

511-
<details>
512-
<summary><h3>Handling insets and fullscreen</h3></summary>
513-
514-
`BottomSheetBehavior` can automatically handle insets (such as for
515-
[edge to edge](https://developer.android.com/training/gestures/edge-to-edge)) by
516-
specifying any of these to true on the view:
517-
518-
* `app:paddingBottomSystemWindowInsets`
519-
* `app:paddingLeftSystemWindowInsets`
520-
* `app:paddingRightSystemWindowInsets`
521-
* `app:paddingTopSystemWindowInsets`
522-
523-
On API 21 and above the modal bottom sheet will be rendered fullscreen (edge to
524-
edge) if the navigation bar is transparent and `enableEdgeToEdge` is true. To
525-
enable edge-to-edge by default for modal bottom sheets, you can override
526-
`?attr/bottomSheetDialogTheme` like the below example (`enableEdgeToEdge` is
527-
already true in `ThemeOverlay.Material3.BottomSheetDialog`):
528-
529-
```xml
530-
<style name="AppTheme" parent="Theme.Material3.*">
531-
...
532-
<item name="bottomSheetDialogTheme">@style/ThemeOverlay.App.BottomSheetDialog</item>
533-
</style>
534-
535-
<style name="ThemeOverlay.App.BottomSheetDialog" parent="ThemeOverlay.Material3.BottomSheetDialog">
536-
<item name="android:navigationBarColor">@android:color/transparent<item>
537-
</style>
538-
```
539-
540-
Insets can be added automatically if any of the padding attributes above are set
541-
to true in the style, either by updating the style passed to the constructor, or
542-
by updating the default style specified by the `?attr/bottomSheetDialogTheme`
543-
attribute in your theme.
544-
545-
`BottomSheetDialog` will also add padding to the top when the bottom sheet
546-
slides under the status bar, to prevent content from being drawn underneath it.
547-
548-
</details>
549-
550511
<details>
551512
<summary><h3>Making bottom sheets accessible</h3></summary>
552513

0 commit comments

Comments
 (0)