35 Commits

Author SHA1 Message Date
rightnao
4e4e8f3388 [BottomSheet] Add support for Nested Scrolling with multiple nested scroll children.
PiperOrigin-RevId: 817350806
2025-10-10 19:10:21 +00:00
Material Design Team
cc2390f1a2 [Docs] Updated documentation with additional code/info and updated the nomenclature of images in the following docs:
1. BottomSheet
2. Checkbox
3. DatePicker
4. Divider
5. Menu
6. RadioButton
7. Snackbar
8. TimePicker

PiperOrigin-RevId: 799044653
2025-08-27 13:39:23 -07:00
Nik Clayton
5e7e8238f7 [BottomSheet] Delete duplicate "Handling insets and fullscreen" section
Duplicate to L358-374.

Resolves https://github.com/material-components/material-components-android/pull/4864

GIT_ORIGIN_REV_ID=84ed4dbe6fd64e69a16f84e9f56bd5b95a9df851
PiperOrigin-RevId: 785869465
2025-07-24 18:34:43 +00:00
Material Design Team
1bc9d1e059 [Docs] Updated Bottom Sheets doc to make it more user friendly
PiperOrigin-RevId: 775103509
2025-06-27 16:07:50 +00:00
rightnao
e7f9f639d2 [BottomSheetDialog] Add support for androidx.core ProtectionLayout API and update dependency to 1.16
PiperOrigin-RevId: 764887825
2025-05-30 13:35:12 +00:00
Material Design Team
aaa40dbc4e Automated g4 rollback of changelist 754982643
PiperOrigin-RevId: 755433180
2025-05-07 19:31:37 +00:00
leticiars
2e68da28e3 [Docs] remove {width=} and {height=} tags, and also remove unsupported tabs tags.
Resolves https://github.com/material-components/material-components-android/pull/4761

Co-authored-by: manabu-nakamura <ma.nakamura@gmail.com>
GIT_ORIGIN_REV_ID=229c23b69b36cddc8b3092b0d97f5a9a11187c71
PiperOrigin-RevId: 755361891
2025-05-07 19:29:07 +00:00
hunterstich
603f1ef9d5 [BottomSheet] Deprecated enableEdgeToEdge for bottom sheet dialogs on API 35+.
enableEdgeToEdge no longer takes effect on API 35 and above where edge-to-edge is now enforced. Use paddingLeft|Right|BottomSystemWindowInsets to automatically inset dialog content.

Resolves https://github.com/material-components/material-components-android/issues/4749
Resolves https://github.com/material-components/material-components-android/issues/4732
Resolves https://github.com/material-components/material-components-android/issues/4367

PiperOrigin-RevId: 754982643
2025-05-07 19:26:30 +00:00
Material Design Team
e97782e8e8 [Docs] Updated Bottom Sheets doc to make it more user friendly
PiperOrigin-RevId: 752603969
2025-04-30 17:49:06 +00:00
hunterstich
9b440028b8 Automated g4 rollback of changelist 694359774
PiperOrigin-RevId: 740806136
2025-03-27 15:42:02 +00:00
manabu-nakamura
8fb6ea3064 [Docs][BottomSheet] not app:enableEdgeToEdge but enableEdgeToEdge
Resolves https://github.com/material-components/material-components-android/pull/4360

GIT_ORIGIN_REV_ID=acf4ee2bd97c7ecb261da9f885ffd654c6b09733
PiperOrigin-RevId: 706762905
2024-12-16 21:55:13 +00:00
pubiqq
c1c19c8b3a [Internal] Update targetApi suppressions in resources
Resolves https://github.com/material-components/material-components-android/pull/4308

GIT_ORIGIN_REV_ID=8016db9460e4e1013e56a50e541406ff356e2837
PiperOrigin-RevId: 702111281
2024-12-04 23:58:23 +00:00
Material Design Team
9c1ae33fdb Automated g4 rollback of changelist 694223692
PiperOrigin-RevId: 694359774
2024-11-11 13:25:21 -08:00
hunterstich
7f2b363d8b [BottomSheet] Made the drag handle clickable to cycle through bottom sheet states.
Clicking on the drag handle will now cycle through the available states as an accessible alternative to swiping.

PiperOrigin-RevId: 694223692
2024-11-11 13:17:40 -08:00
rightnao
f09c562eb5 [Docs][BottomSheet] Add more information to BottomSheetDialogFragment docs
PiperOrigin-RevId: 686706770
2024-10-17 16:56:06 +00:00
pubiqq
9a39e222d8 [Docs] Fix anchors.
Resolves https://github.com/material-components/material-components-android/pull/4015

GIT_ORIGIN_REV_ID=0b4097653df971659ed1526e450bc40030f502e3
PiperOrigin-RevId: 634017580
2024-05-16 14:03:41 +00:00
dsn5ft
a35b6b835c [Bottom Sheet] Add ability to disable dragging/expanding/collapsing the sheet when touching/scrolling the nested scrolling child view
PiperOrigin-RevId: 624204480
2024-04-12 20:03:30 +00:00
pubiqq
d7e75bba59 [Docs] Minor code block improvements
Resolves https://github.com/material-components/material-components-android/pull/3570

GIT_ORIGIN_REV_ID=ca0c9b122e669dd53ba4fbe1a06b3ec3e38ce58d
PiperOrigin-RevId: 564766453
2023-09-13 10:56:59 -04:00
pekingme
2114a11378 [Docs] Updated dev doc for tonal surface colors in affected components.
PiperOrigin-RevId: 556901517
2023-08-14 20:55:38 +00:00
rightnao
1785bbfabe [Docs] Cross-reference m.io and DAC in Github docs
PiperOrigin-RevId: 546035020
2023-07-07 17:50:11 +00:00
hunterstich
a67a885668 [Predictive Back] Update components to use BackEventCompat
Clients should prefer listening to back events using androidx.activity.OnBackPressedCallback which has been updated to forward BackEventCompat objects in androidx.activity:activity:1.8.0-alpha05. This updates component predictive back APIs to take in BackEventCompat objects instead of android.window.BackEvent objects to simplify usage - getting rid of the need for version checks and object conversions.

PiperOrigin-RevId: 540290323
2023-06-14 12:44:53 -07:00
dsn5ft
82a91c8455 [Predictive Back] Minor dev doc edits
PiperOrigin-RevId: 534176825
2023-05-24 14:28:35 +00:00
dsn5ft
47c307d889 [Predictive Back] Update dev docs
PiperOrigin-RevId: 533443345
2023-05-22 18:35:56 +00:00
rightnao
af1fa70979 [BottomSheet][Docs] Update bottom sheet documentation
PiperOrigin-RevId: 532478454
2023-05-16 20:00:21 +00:00
rightnao
6cf56a5ebe [BottomSheet] Update elevation to match specs
PiperOrigin-RevId: 482255576
2022-10-21 16:25:14 +00:00
conradchen
f99e39df8c Automated g4 rollback of changelist 479423629
PiperOrigin-RevId: 479636961
2022-10-11 14:01:31 +00:00
rightnao
617e5822f9 [BottomSheet] Update elevation to match specs
PiperOrigin-RevId: 479423629
2022-10-11 14:00:59 +00:00
rightnao
d845db8979 [BottomSheetBehavior] Add attribute for significant velocity threshold
resolves https://github.com/material-components/material-components-android/issues/2034

PiperOrigin-RevId: 463458591
2022-07-28 17:38:16 -04:00
afohrman
48656398cb [Bottom Sheet] [Docs] Corrected guidance to use modal bottom sheet default style theme attribute for standard bottom sheets and added a callout explaining that there is no default style theme attribute for standard bottom sheets.
PiperOrigin-RevId: 462465244
2022-07-22 15:24:37 +00:00
conradchen
ac7b761294 [BottomSheet] Create a drag handle view which support accessibility control
PiperOrigin-RevId: 457939228
2022-06-29 14:38:43 +00:00
conradchen
57a3c989ff [Doc] Add an example to demonstrate how to make bottom sheet dialog edge-to-edge
PiperOrigin-RevId: 453451473
2022-06-07 18:50:24 -07:00
Material Design Team
181851bffb [M3][Docs] Update Bottom Sheet developer documentation
PiperOrigin-RevId: 399555339
2021-09-29 10:00:36 -04:00
serniebanders
10284bcf74 [M3][Docs] Update bottomsheet documentation to describe M3 themes/styles.
Additionally exposes M3 bottomsheet styles in res-public

PiperOrigin-RevId: 397125281
2021-09-20 11:49:12 -07:00
leticiars
6c84213397 [Documentation] Fixing formatting of notes.
PiperOrigin-RevId: 396590903
2021-09-16 11:38:43 -07:00
leticiars
104337f2ba [Documentation] Updated bottom sheet doc.
PiperOrigin-RevId: 391048486
2021-08-16 13:47:50 -07:00