3533 Commits

Author SHA1 Message Date
Material Design Team
aaa40dbc4e Automated g4 rollback of changelist 754982643
PiperOrigin-RevId: 755433180
2025-05-07 19:31:37 +00:00
rightnao
1b58f5ff5e [Dialog] Add m3 styles for floating toolbar and docked toolbar for dialog
PiperOrigin-RevId: 755376708
2025-05-07 19:29:44 +00:00
pekingme
0c5b17a406 [Button] Fixed a bug that checked state in XML was not respected.
PiperOrigin-RevId: 755123809
2025-05-07 19:28:26 +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
leticiars
771119111e [Checkbox] Update translations.
PiperOrigin-RevId: 754935262
2025-05-07 19:22:53 +00:00
pekingme
7ae12b5ab0 [ButtonGroup] Updated to only draw surface color under the button's stroke when the buttons are actually overlapped.
PiperOrigin-RevId: 753629476
2025-05-02 15:58:36 +00:00
rightnao
12fad1d489 [NavigationRail] Force NavigationFrameLayout to be the available size at the minimum
PiperOrigin-RevId: 753364953
2025-05-02 15:57:12 +00:00
rightnao
4070bef87a [SearchBar] Updating centered search bar text to have 8dp content start and end padding
PiperOrigin-RevId: 753361934
2025-05-02 15:56:18 +00:00
rightnao
5a600a86d5 [Search] Added a clip bounds animation for searchview edit text
PiperOrigin-RevId: 753331382
2025-05-02 15:54:25 +00:00
rightnao
be09936c88 [Search] Add a placeholder textview to Searchbar that keeps track of searchview edit text in order to gracefully fade it out in searchview collapse animation
PiperOrigin-RevId: 752904135
2025-04-30 17:51:14 +00:00
pekingme
571a196d39 [Button] Test improve memory usage when materialSizeOverlay is used.
PiperOrigin-RevId: 752787092
2025-04-30 17:50:24 +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
pekingme
0b578fd7a0 [SearchBar] Added Expressive styles.
PiperOrigin-RevId: 752568935
2025-04-30 17:47:53 +00:00
kendricku
2aadbd1ff1 [Button][Split Button] Update split button styles to lessen maker specification requirements and support consistency.
PiperOrigin-RevId: 752444738
2025-04-30 17:47:20 +00:00
hunterstich
0c1a914549 [Typography] Added emphasized typescale to public attributes
PiperOrigin-RevId: 752370865
2025-04-30 17:36:54 +00:00
Material Design Team
a0b4dfa876 [BottomSheet] Fix keyboard animation on Android 14
PiperOrigin-RevId: 752302187
2025-04-28 15:18:37 +00:00
pekingme
34853f1617 [ProgressIndicator] Added Expressive styles.
PiperOrigin-RevId: 751582890
2025-04-28 15:15:36 +00:00
rightnao
c2c660b8bc [SearchBar] Update centering layout logic to account for padding and content insets
PiperOrigin-RevId: 751477468
2025-04-28 15:14:45 +00:00
pekingme
4f55422744 [ButtonGroup] Add a demo to programmatically add/remove buttons in a button group.
PiperOrigin-RevId: 751060643
2025-04-25 16:58:30 +00:00
pekingme
0bd1749898 [Dialog] Added Expressive styles.
PiperOrigin-RevId: 750744509
2025-04-25 16:55:20 +00:00
pekingme
3a2969935f [Slider] Added Expressive styles.
PiperOrigin-RevId: 750463306
2025-04-23 19:49:00 +00:00
pfthomas
781d344142 [Slider] Centered Slider Expressive updates
- update the Centered Slider to show the track starting from the center

PiperOrigin-RevId: 750301810
2025-04-22 20:39:48 +00:00
pubiqq
7c6242924e [Color] ColorResourcesTableCreator: Fix length encoding for utf8 strings
Resolves https://github.com/material-components/material-components-android/pull/4710

GIT_ORIGIN_REV_ID=93cfc26eaac6aff2e6ec1e80123f4eb2d98b42b7
PiperOrigin-RevId: 750282052
2025-04-22 20:37:28 +00:00
pekingme
de1f5e1952 [ProgressIndicator] Reorganized styles.
PiperOrigin-RevId: 749841349
2025-04-22 20:18:17 +00:00
pekingme
72d011d48a [Slider] Reorganized styles.
PiperOrigin-RevId: 749840827
2025-04-22 20:16:58 +00:00
pekingme
56a96a8f82 [NavRail] Added Expressive styles.
PiperOrigin-RevId: 749159805
2025-04-21 16:08:59 +00:00
pekingme
12a136c56a [NavRail] Migrated to new token sets.
PiperOrigin-RevId: 749147576
2025-04-21 16:07:49 +00:00
pekingme
e980f6018d [BottomNav] Added Expressive styles.
PiperOrigin-RevId: 749114894
2025-04-21 16:06:50 +00:00
pekingme
02fcdf5fb4 [BottomNav] Migrated to new token sets.
PiperOrigin-RevId: 749087804
2025-04-21 15:56:00 +00:00
pekingme
9fc00e8f90 [NavRail] Reorganized styles.
PiperOrigin-RevId: 749087459
2025-04-21 15:55:15 +00:00
pekingme
a28f0e0d7b [Dialog] Reorganized styles.
PiperOrigin-RevId: 749086083
2025-04-21 15:54:30 +00:00
rightnao
4b9df08511 [FloatingToolbar][DockedToolbar] Added m3 styles for buttons and theme overlays
PiperOrigin-RevId: 749086012
2025-04-21 15:53:43 +00:00
rightnao
834ce09d71 [DockedToolbar][FloatingToolbar] Include IME in insets
PiperOrigin-RevId: 749085039
2025-04-21 15:52:25 +00:00
pekingme
d0194fb050 [BottomNav] Rearranged M3 styles.
PiperOrigin-RevId: 749071804
2025-04-21 15:37:59 +00:00
pekingme
6c7354a368 [ButtonGroups] Added expressive styles.
PiperOrigin-RevId: 748866556
2025-04-21 15:36:02 +00:00
pekingme
d791fad4cc [ButtonGroup] Fixed the bug of size morph not working with layout_weight.
PiperOrigin-RevId: 748859113
2025-04-18 00:17:04 +00:00
pubiqq
443eaa59c0 [Color] ColorResourcesTableCreator: Fix resource entry names
Resolves https://github.com/material-components/material-components-android/pull/4708
Resolves https://github.com/material-components/material-components-android/pull/4707
Resolves https://github.com/material-components/material-components-android/issues/4472
Resolves https://github.com/material-components/material-components-android/issues/4706

GIT_ORIGIN_REV_ID=b03d6db74d066a1be47a18d242b646db8b568afb
PiperOrigin-RevId: 748477063
2025-04-18 00:15:02 +00:00
kendricku
2667e098db [Button] Added optical center feature.
ORIGINAL_AUTHOR=pekingme

PiperOrigin-RevId: 748415083
2025-04-18 00:14:04 +00:00
pekingme
696a48a5b1 [Button] Added expressive styles in M3 expressive dialog themes.
PiperOrigin-RevId: 748364177
2025-04-18 00:05:20 +00:00
pekingme
fd0b8bab59 [FAB] Added Expressive styles.
PiperOrigin-RevId: 748329944
2025-04-18 00:03:36 +00:00
pekingme
870ace37e7 [FAB] Added medium FAB and s/m/l extended FABs to Material3.
PiperOrigin-RevId: 748052437
2025-04-17 23:58:47 +00:00
Material Design Team
93a5130594 [ContextMenu] Fixed Dark Mode for Context Menu
PiperOrigin-RevId: 747912943
2025-04-17 23:57:44 +00:00
rightnao
dcfbdff79c [TopAppBar] Add attribute to center based on whole container
PiperOrigin-RevId: 747496721
2025-04-17 23:56:54 +00:00
Material Design Team
39dd3a4235 [DatePicker][A11y] Fix accessibility focus landing on first day of month after year selection
After selecting a year, accessibility focus now correctly returns to the calendar/year selection button instead of jumping to the first day of the month. Also disabled RecyclerView animations when TalkBack is enabled to prevent incorrect date announcements during transitions.

PiperOrigin-RevId: 745964584
2025-04-17 23:55:05 +00:00
rightnao
53616ad822 [SearchBar] Add cutout insets to SearchView toolbar
PiperOrigin-RevId: 745270784
2025-04-17 23:54:16 +00:00
hunterstich
1eaf483fc9 [ChipGroup] Updated flow layout to correctly layout padding when in RTL.
maxChildEnd is used to track when to move a child onto the next row. It can't be used to layout a child since it uses paddingEnd and children need to be laid out relative to the start of the container.

PiperOrigin-RevId: 744800898
2025-04-17 23:53:21 +00:00
rightnao
44eabe31b8 [SearchBar] Fix animation calculations for predictive back
PiperOrigin-RevId: 743652844
2025-04-07 14:34:18 +00:00
kendricku
9fd5a67c9f [i18n][Datepicker] Translate fixed a11y announcements.
PiperOrigin-RevId: 743598030
2025-04-07 14:33:11 +00:00
rightnao
917022188b [SearchBar] Fix long centered text overlapping with menu items
PiperOrigin-RevId: 743214367
2025-04-07 14:31:08 +00:00
kendricku
960bb4cb82 [a11y][TimePicker] Include "hour" and "minute" in announcements. For example: "Not checked, Hour - 11'0 clock. double tap to select Hour".
PiperOrigin-RevId: 742718549
2025-04-07 14:29:38 +00:00