254 Commits

Author SHA1 Message Date
pfthomas
1ee07687af [BottomSheet] Make handle respond to keyboard input
PiperOrigin-RevId: 775207544
2025-06-27 16:09:03 +00:00
hunterstich
eb935e60b0 [Process] Updated component string translations
PiperOrigin-RevId: 772911687
2025-06-18 14:32:40 +00:00
rightnao
d211909848 [BottomSheetDialog] Fix crash when protections are set before setContentView is called
PiperOrigin-RevId: 766278504
2025-06-02 20:27:28 +00:00
Material Design Team
95e7b45208 [BottomSheet][A11y] Add half-expanded state description for accessibility
PiperOrigin-RevId: 765144604
2025-05-30 13:36:48 +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
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
af7f254bf6 [Bottom Sheet] Prevent ACTION_DOWN events on the BottomSheetHandleDragView from setting touchingScrollChild to true.
Previously, a BottomSheetHandleDragView overlapping the nestedScrollingChildRef would not always be able to resize/drag the bottom sheet.

PiperOrigin-RevId: 752730372
2025-04-30 17:49:40 +00:00
Material Design Team
a0b4dfa876 [BottomSheet] Fix keyboard animation on Android 14
PiperOrigin-RevId: 752302187
2025-04-28 15:18:37 +00:00
hunterstich
8ded9f511d [BottomSheet] Added back the AccessibilityStateChangedListener implementation in drag handle component
PiperOrigin-RevId: 741553738
2025-03-31 14:45:32 +00:00
hunterstich
9b440028b8 Automated g4 rollback of changelist 694359774
PiperOrigin-RevId: 740806136
2025-03-27 15:42:02 +00:00
rightnao
37adad28af [Tokens] Update tokens to 16.0.2
PiperOrigin-RevId: 739249542
2025-03-24 15:27:25 +00:00
pekingme
67b6dcebe5 [Tokens] Upgraded to 15.0.26
PiperOrigin-RevId: 731761144
2025-03-03 19:50:32 +00:00
pekingme
c39dc388b3 [Tokens] Upgraded to version 15.0.12.
PiperOrigin-RevId: 730510849
2025-02-25 19:32:33 +00:00
pekingme
7c5dce0f82 [Tokens] Updated to 14.0.0.
PiperOrigin-RevId: 728471950
2025-02-20 15:36:11 +00:00
pekingme
9a2890c249 [Resources] Updated translated string resources.
Resolves https://github.com/material-components/material-components-android/issues/4553

PiperOrigin-RevId: 720282586
2025-01-28 19:47:24 +00:00
pubiqq
e3a3093309 [Internal] Use monotonic clock to measure time intervals
Resolves https://github.com/material-components/material-components-android/pull/4289

GIT_ORIGIN_REV_ID=6686c2a3101c235c1fec087a0f77acbfecd23540
PiperOrigin-RevId: 718390534
2025-01-22 17:54:49 +00:00
pubiqq
bc2fdeadaf [Internal] Prefer platform methods to compat ones
Resolves https://github.com/material-components/material-components-android/pull/4532

GIT_ORIGIN_REV_ID=180dec736f2521579e483317a4d537629d8f247b
PiperOrigin-RevId: 715494344
2025-01-15 18:06:07 +00:00
Material Design Team
95025c6728 [BottomSheet] Remove disruptive announcement "Drag handle double tapped"for BottomSheetDragHandleView.
PiperOrigin-RevId: 708956357
2024-12-23 18:56:36 +00:00
pekingme
4f7bf293ea [Tokens] Updated token outputs to v13.2.0 and integrated new AppBar tokens.
PiperOrigin-RevId: 703208208
2024-12-10 17:57:50 +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
pubiqq
767f25aa49 [Docs] Fix javadoc links
Resolves https://github.com/material-components/material-components-android/pull/4333

GIT_ORIGIN_REV_ID=61739e430bcda13086b83015e4054d7e318cd0d5
PiperOrigin-RevId: 700775734
2024-12-02 20:07:07 +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
pubiqq
b77824fcc7 [Internal] Remove pre-Lollipop resources
Resolves https://github.com/material-components/material-components-android/pull/4280

GIT_ORIGIN_REV_ID=88ee02b5c93b51a154503b7a1f1b85ddeea3cb57
PiperOrigin-RevId: 676472901
2024-09-20 19:49:20 +00:00
pekingme
47cbd7e81a [Tokens] Upgraded to 10.0.1
PiperOrigin-RevId: 676467444
2024-09-20 19:48:02 +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
pekingme
87076dd20b [Tokens] Upgraded to 8.0.0.
PiperOrigin-RevId: 669673113
2024-09-03 13:28:26 +00:00
pekingme
9188b8f6ab [Tokens] Upgraded to 7.1.0.
PiperOrigin-RevId: 669087033
2024-08-30 18:49:53 +00:00
pekingme
b65df32b0f [Tokens] Upgraded to 7.0.0
PiperOrigin-RevId: 668133320
2024-08-28 22:34:40 +00:00
pekingme
8731cad96a [Tokens] Upgraded to v6.1.0.
PiperOrigin-RevId: 665569215
2024-08-21 17:24:43 +00:00
pekingme
da0b738679 [Tokens] Upgraded to v5.0.0.
PiperOrigin-RevId: 663358341
2024-08-16 17:33:16 +00:00
pubiqq
a89e38c0cf [BottomSheet] Recycle the TypedArray after usage
Resolves https://github.com/material-components/material-components-android/pull/4032

GIT_ORIGIN_REV_ID=f9ac4cf68c6ef7cd41d0bbdca2c7d09b0f99f5d9
PiperOrigin-RevId: 633632973
2024-05-15 16:57:50 +00:00
dsn5ft
9b6ceac72a [i18n] Update string translations
PiperOrigin-RevId: 633623911
2024-05-14 17:16:18 +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
Ga\u00ebtan Muller
b3fe6a7f61 [Cleanup] Remove redundant version checks for api <= 19.
Resolves https://github.com/material-components/material-components-android/pull/3849

GIT_ORIGIN_REV_ID=47bb2fcc8031740e5a7d4f741f1ada2af025e126
PiperOrigin-RevId: 632154861
2024-05-09 18:46:02 +00:00
Material Design Team
a7a234bf07 [Bottom Sheet] Prevents nested scroll from occurring in a scroll session when the bottom sheet is already being resized.
Previously, the bottom sheet could be fixed at any height while resizing it by triggering a fling in the opposite direction.

PiperOrigin-RevId: 628170687
2024-04-26 17:52:32 +00:00
pfthomas
9b09b693d9 [Tokens] Update tokens to v4.0.0
PiperOrigin-RevId: 626141198
2024-04-19 21:18:49 +00:00
dsn5ft
d056cc352f [Bottom Sheet] Allow dragging the sheet on overscroll when draggableOnNestedScroll=false
PiperOrigin-RevId: 624269903
2024-04-15 17:59:25 +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
pekingme
28cc2441d0 [Tokens] Updated to version 2.3.4.
PiperOrigin-RevId: 610835532
2024-02-29 08:36:02 -08:00
pekingme
ee7b4bddb4 [Tokens] Added formatting to break long lines and differentiate different comments.
PiperOrigin-RevId: 605684816
2024-02-12 18:03:59 +00:00
pekingme
89212044a9 [Tokens] Updated to v0.213.
PiperOrigin-RevId: 603749766
2024-02-06 14:30:16 +00:00
pekingme
08d7ded67b [Tokens] Upgraded to v0.207.
PiperOrigin-RevId: 600947836
2024-01-24 21:05:53 +00:00
pekingme
4ccaaaa31d [Tokens] Upgraded to v0.203
PiperOrigin-RevId: 579928128
2023-11-08 15:12:21 +00:00
pekingme
637362d597 [Tokens] Upgraded to v0.195
PiperOrigin-RevId: 579905417
2023-11-06 20:27:15 +00:00
pekingme
0463c507d7 [Tokens] Upgraded to v0.185
PiperOrigin-RevId: 579904837
2023-11-06 20:26:18 +00:00
pekingme
bfee8a74d7 [Tokens] Upgraded to v0.175.
PiperOrigin-RevId: 572648883
2023-10-12 11:04:28 -07:00
pubiqq
0663019f45 [Color] Add ColorStateListDrawable support
Resolves https://github.com/material-components/material-components-android/pull/3538

GIT_ORIGIN_REV_ID=1bf9e320dc148e1bc959e7577372d3a393f35574
PiperOrigin-RevId: 563258432
2023-09-07 12:37:54 +00:00
pubiqq
de271320e4 [BottomSheet] Fix sheet corners animation
Resolves https://github.com/material-components/material-components-android/pull/3541
Resolves https://github.com/material-components/material-components-android/issues/3540

GIT_ORIGIN_REV_ID=747db4e9eeed0b14ea1f949862176346afc4944a
PiperOrigin-RevId: 560143863
2023-08-25 19:25:16 +00:00