3411 Commits

Author SHA1 Message Date
pekingme
29be993604 [Shape] Added additional shape appearance styles in public.xml
PiperOrigin-RevId: 718631797
2025-01-24 18:30:47 +00:00
rightnao
d0f5d721a1 [Carousel] Recalculate keyline state if it doesn't match the current container size
PiperOrigin-RevId: 718578581
2025-01-24 18:27:58 +00:00
pekingme
447fd02900 [Shape] Added new attributes in Material3 themes.
PiperOrigin-RevId: 718524523
2025-01-22 23:07:54 +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
Material Design Team
cfe822097b Automated g4 rollback of changelist 715031294
PiperOrigin-RevId: 717977309
2025-01-21 18:57:52 +00:00
conradchen
690bbfc917 [TextField] Fix the issue that menu items gets filtered after recreation
It's actually a bug of framework's AutoCompleteTextView. When restoring the
state, it always filters the item list regardless the previously input item
is from menu selection or manual input.

This change fixes the issue by implementing the custom logic of input text
saving/restoring, and properly remember if the last input text filters the
item list or not.

Resolves https://github.com/material-components/material-components-android/issues/1464

PiperOrigin-RevId: 716328564
2025-01-16 20:37:01 +00:00
pubiqq
54778a9ae4 [Slider] Improve track icon bounds calculation
Resolves https://github.com/material-components/material-components-android/pull/4535

GIT_ORIGIN_REV_ID=080a4db213a47dae1e65f6b4edb2235f183599bd
PiperOrigin-RevId: 716316682
2025-01-16 19:59:20 +00:00
manabu-nakamura
867fd010f8 [Slider] remove unnecessary code
Resolves https://github.com/material-components/material-components-android/pull/4537

GIT_ORIGIN_REV_ID=e508df4affbda49f20a64dba7502fb21d90f0a3a
PiperOrigin-RevId: 716261754
2025-01-16 19:58:37 +00:00
rightnao
a798a82e0b [NavigationRail] Add attributes for expanded active indicator padding
PiperOrigin-RevId: 715573480
2025-01-15 20:07:23 +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
pekingme
d4ac3d593e [TopAppBar] Fixed the toolbar not snap when switch to freeform windowing.
PiperOrigin-RevId: 715031294
2025-01-14 18:30:22 +00:00
hunterstich
f4342f1eb8 [Motion] Added default style parameter for MotionUtil when resolving theme spring attributes
PiperOrigin-RevId: 714984914
2025-01-14 17:54:18 +00:00
pubiqq
b31711cd9e [Slider] Slider, don't warn about track icons if you don't have any
Resolves https://github.com/material-components/material-components-android/pull/4531

GIT_ORIGIN_REV_ID=4d23fdc773e9ba6fd4d1842be4590bb4417ff32f
PiperOrigin-RevId: 713752392
2025-01-10 15:31:44 +00:00
pekingme
32633a6ff4 [TopAppBar] Applied formatting only.
PiperOrigin-RevId: 713744692
2025-01-10 15:26:13 +00:00
pubiqq
d28488d774 [Slider] Fix label pivots
Resolves https://github.com/material-components/material-components-android/pull/4509

GIT_ORIGIN_REV_ID=a26da16d8389df1de090c737c50c6c1e12f77df8
PiperOrigin-RevId: 713697809
2025-01-10 15:25:12 +00:00
rightnao
7f0a51dae2 [NavigationRail] Fix active indicator label jump when expanding
PiperOrigin-RevId: 713436233
2025-01-09 13:51:02 +00:00
pekingme
57297ae59d [CollapsingToolbarLayout] Added multiple subtitle support.
PiperOrigin-RevId: 713365011
2025-01-09 13:49:55 +00:00
pubiqq
8a4d3c6951 [NavigationBar] Fix early return in setItemGravity()
Resolves https://github.com/material-components/material-components-android/pull/4522

GIT_ORIGIN_REV_ID=3b768005712cd6329b82cbb715e31b5c104000fd
PiperOrigin-RevId: 713321774
2025-01-09 13:48:52 +00:00
kendricku
c1e73c87c1 [SplitButton] Updated Split Button to match spec and address feedback.
Updated padding values on leading and trailing buttons and fixed the trailing icon sizing. Resolved screenshot diffs in the formatting fragment.

PiperOrigin-RevId: 713303721
2025-01-08 18:25:06 +00:00
manabu-nakamura
b4585cdf16 [NavigationRailView] Update comment
Resolves https://github.com/material-components/material-components-android/pull/4493
Resolves https://github.com/material-components/material-components-android/issues/4492

GIT_ORIGIN_REV_ID=63072926609dbb6ef66a18430db60e296202b576
PiperOrigin-RevId: 713025342
2025-01-08 18:22:36 +00:00
pubiqq
80593b2a4e [TimePicker] Fix number format on 24-hour dial
Resolves https://github.com/material-components/material-components-android/pull/4523

GIT_ORIGIN_REV_ID=dcee0b2865bd9c9512b581d34d95aac998cac6a0
PiperOrigin-RevId: 713018088
2025-01-08 18:06:19 +00:00
pubiqq
e6e9385059 [Slider] Fix thumb visibility for vertical slider on API 23
Resolves https://github.com/material-components/material-components-android/pull/4505

GIT_ORIGIN_REV_ID=ed5a3af3ec63ea820651897eac2caa85ece13288
PiperOrigin-RevId: 712937074
2025-01-08 18:04:33 +00:00
pubiqq
9ce14ae3fd [Slider] Refactor track icon tinting
Resolves https://github.com/material-components/material-components-android/pull/4521

GIT_ORIGIN_REV_ID=674feb5f080ee2ea79245b17314d852893ece7d7
PiperOrigin-RevId: 712886599
2025-01-07 14:36:28 +00:00
pekingme
8598aa6ae9 [CollapsingToolbarLayout] Fixed incorrect title and subtitle positioning.
PiperOrigin-RevId: 712776905
2025-01-07 14:33:47 +00:00
rightnao
05f8c52342 [FloatingToolbar] Add inset handling
PiperOrigin-RevId: 712737242
2025-01-07 14:32:21 +00:00
pubiqq
ddda777dda [Slider] Always update track bounds before drawing icons
Resolves https://github.com/material-components/material-components-android/pull/4488

GIT_ORIGIN_REV_ID=0437dc5fd010715429822287ec12a8f77bffbe92
PiperOrigin-RevId: 712658525
2025-01-07 14:24:56 +00:00
rightnao
7f887846b5 [FloatingToolbar] Removed floating toolbar-specific icon button styles from theme overlay
PiperOrigin-RevId: 712607176
2025-01-07 14:12:09 +00:00
Nic Bell
cfe6dce4e9 [Text field] Make highlight text colour respect the theme rather than M3 default
Resolves https://github.com/material-components/material-components-android/pull/4371

GIT_ORIGIN_REV_ID=c7da763ff3620ec96fa7a6982e3ea6be99618ff1
Co-authored-by: kendrickumstattd <kendrick.umstattd@gmail.com>
PiperOrigin-RevId: 711445558
2025-01-02 17:29:31 +00:00
rightnao
b07e48b576 [FloatingToolbar] Update styles to consolidate horizontal/vertical styles to a single style
PiperOrigin-RevId: 709100303
2024-12-26 19:10:58 +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
rightnao
a7ff8c9006 [Chip] Fix close icon focus ripple
PiperOrigin-RevId: 708446508
2024-12-23 18:55:42 +00:00
hunterstich
59de693346 [Motion] Fixed typo for "spatial"
PiperOrigin-RevId: 708423524
2024-12-23 18:54:42 +00:00
rightnao
94966194fa [NavigationRail] Add divider functionality for expanded nav rail
PiperOrigin-RevId: 708103452
2024-12-20 18:45:43 +00:00
kendricku
08fff9f6f8 [SplitButton] Add chevron drawable AVD to public.
PiperOrigin-RevId: 708019854
2024-12-20 18:44:11 +00:00
rightnao
998fe833e2 [Carousel] Change custom Carousel strategies to be restricted visibility in order to refactor custom strategies
PiperOrigin-RevId: 707143621
2024-12-17 22:56:57 +00:00
rightnao
410f262649 [FloatingToolbar] Set M3 default style
PiperOrigin-RevId: 706756365
2024-12-16 21:54:11 +00:00
hunterstich
98169d21c4 [Motion] Added spring motion subsystem
PiperOrigin-RevId: 705572242
2024-12-16 13:07:30 +00:00
kendricku
9397801ac7 [SplitButton] Update split button styles to match spec.
PiperOrigin-RevId: 705488629
2024-12-16 13:06:14 +00:00
rightnao
2a0dda873c [NavigationRail] Consume all touch events to avoid views under from receiving touch events.
PiperOrigin-RevId: 705270356
2024-12-16 13:02:13 +00:00
pekingme
782d2607da [Collapsing Toolbar] Removed the gravity APIs for subtitle (subtitle shares same gravity as title).
PiperOrigin-RevId: 704844851
2024-12-16 13:01:25 +00:00
rightnao
4bc4381e24 [Carousel] Added a notifyItemSizeChanged() method
PiperOrigin-RevId: 704836257
2024-12-16 13:00:43 +00:00
hunterstich
4019e182e6 [Motion] Added spring motion tokens
PiperOrigin-RevId: 704751542
2024-12-16 12:59:36 +00:00
kendricku
ec8be9ab57 Internal change
PiperOrigin-RevId: 704689311
2024-12-10 18:03:07 +00:00
rightnao
2ebf28fdb5 [BottomNavigationView] Consume all touch events in BottomNavigationView so touch events are not passed to the view underneath
PiperOrigin-RevId: 703309708
2024-12-10 17:58:41 +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
pfthomas
63e1ec9a54 [Slider] a11y fixes
- demos are scrollable
- fix issue where increment is reversed when Slider is vertical

PiperOrigin-RevId: 703087896
2024-12-10 17:56:45 +00:00
rightnao
03d2c693cb [Chip] Add @Override to Chip#setBackgroundTintList
PiperOrigin-RevId: 702838517
2024-12-05 00:01:57 +00:00
pfthomas
35a82030f5 [Slider] a11y fixes
Resolves https://github.com/material-components/material-components-android/issues/2176

PiperOrigin-RevId: 702789538
2024-12-04 23:59:28 +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
rightnao
1696ec3dcd [NavigationBar] Fix bug where setChecked(false) is called for the previously checked item even if it's already unchecked
PiperOrigin-RevId: 702083973
2024-12-04 23:57:41 +00:00