@@ -508,45 +508,6 @@ the [behavior attributes](#behavior-attributes) section.
508
508
509
509
</details >
510
510
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
-
550
511
<details >
551
512
<summary ><h3 >Making bottom sheets accessible</h3 ></summary >
552
513
0 commit comments