11 Commits

Author SHA1 Message Date
hunterstich
c2051db2a9 [Internal] Avoid calling deprecated edge-to-edge APIs on 35+
Resolves https://github.com/material-components/material-components-android/issues/4626
Resolves https://github.com/material-components/material-components-android/issues/4507
Resolves https://github.com/material-components/material-components-android/issues/4732
Resolves https://github.com/material-components/material-components-android/issues/4607
Resolves https://github.com/material-components/material-components-android/pull/4883

PiperOrigin-RevId: 800945380
2025-08-29 11:48:28 -07:00
dsn5ft
d75459102f [SideSheetDialog] Add support for enabling edge to edge via setFitsSystemWindows()
PiperOrigin-RevId: 767168515
2025-06-05 18:40:28 +00:00
pubiqq
23aca03255 [Internal] Remove pre-Lollipop checks
Resolves https://github.com/material-components/material-components-android/pull/4266

GIT_ORIGIN_REV_ID=1de7808e66dd6666c893217c76c7499afe2df6a3
PiperOrigin-RevId: 669688797
2024-09-03 13:31:29 +00:00
pubiqq
510881a469 [Internal] Stop using deprecated androidx.core.view.* methods
Resolves https://github.com/material-components/material-components-android/pull/4117

GIT_ORIGIN_REV_ID=dd157e8360c2511810496693cec1616fce578655
PiperOrigin-RevId: 632284856
2024-05-13 17:37:38 +00:00
afohrman
f335a50907 [Predictive Back][Side Sheet] Added predictive back support for modal side sheets.
PiperOrigin-RevId: 527334991
2023-04-26 16:21:39 -04:00
afohrman
d0ad45e1a1 [Side Sheet] Added left/start modal sheet.
Sheet gravity is intended to be set once at setup before the sheet is shown; sheet gravity changes are not supported at runtime and will cause an IllegalStateException.

Also refactored modal sheet demo to recreate the sheet every time it's shown, which allows the sheet gravity changes to take effect for modal sheets.

PiperOrigin-RevId: 526957847
2023-04-25 17:07:13 -04:00
afohrman
af16b051af [Adaptive][Side Sheet] Removed unused methods in SheetDialog and SideSheetDialog.
Also remove the redundant call to supportRequestWindowFeature in SideSheetDialog's constructor.

PiperOrigin-RevId: 495715894
2022-12-16 00:58:14 +00:00
afohrman
d481dddefd [Adaptive] [Side Sheet] Cancel modal side sheet scrim on STATE_HIDDEN.
PiperOrigin-RevId: 493655992
2022-12-07 14:51:53 -05:00
afohrman
c64f57224b [Adaptive] [Side Sheet] Restrict SheetDialog methods from the public API surface and rename getDismissWithAnimation.
PiperOrigin-RevId: 493644328
2022-12-07 14:51:08 -05:00
afohrman
0f9c6fcab8 [Adaptive] [Side Sheet] Made SheetDialog abstract base class and Sheet interface package-private.
PiperOrigin-RevId: 492534084
2022-12-02 18:33:21 -05:00
afohrman
10d72eebec [Adaptive][Side Sheets] Added initial modal side sheet.
PiperOrigin-RevId: 482846478
2022-10-21 18:52:52 +00:00