File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,19 @@ specifying any of these to true on the view:
198
198
199
199
On API 21 and above the modal bottom sheet will be rendered fullscreen (edge to
200
200
edge) if the navigation bar is transparent and ` app:enableEdgeToEdge ` is true.
201
+ To enable edge-to-edge by default for modal bottom sheets, you can override
202
+ ` ?attr/bottomSheetDialogTheme ` like the below example:
203
+
204
+ ```
205
+ <style name="AppTheme" parent="Theme.Material3.*">
206
+ ...
207
+ <item name="bottomSheetDialogTheme">@style/ThemeOverlay.App.BottomSheetDialog</item>
208
+ </style>
209
+
210
+ <style name="ThemeOverlay.App.BottomSheetDialog" parent="ThemeOverlay.Material3.BottomSheetDialog">
211
+ <item name="android:navigationBarColor" tools:ignore="NewApi">@android:color/transparent</item>
212
+ </style>
213
+ ```
201
214
202
215
Insets can be added automatically if any of the padding attributes above are set
203
216
to true in the style, either by updating the style passed to the constructor, or
You can’t perform that action at this time.
0 commit comments