3524 Commits

Author SHA1 Message Date
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
pekingme
2ef3aba608 [Shape] Updated the shape tokens output.
PiperOrigin-RevId: 742421549
2025-04-03 19:24:41 +00:00
rightnao
548c15cb40 [SearchBar][SearchView] Add maxWidth attribute and fix SearchBar/SearchView animations to be more flexible in hierarchy
PiperOrigin-RevId: 742311708
2025-04-03 19:23:16 +00:00
pfthomas
efea65b0eb [Slider][a11y] Add state description to VirtualView node
PiperOrigin-RevId: 741685200
2025-03-31 14:48:57 +00:00
pekingme
bc2592a929 [FAB] Reorganized the FAB and exFAB styles in the order of most recent first.
PiperOrigin-RevId: 741661629
2025-03-31 14:47:21 +00:00
rightnao
04c56f6eb3 [SearchBar] Fix issue with a custom center view pushing out centered text
PiperOrigin-RevId: 741587300
2025-03-31 14:46:16 +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
Material Design Team
f062532d6d Fixed deprecated link in [LabelVisibilityMode.java](https://developer.android.com/reference/com/google/android/material/bottomnavigation/LabelVisibilityMode) source file.
PiperOrigin-RevId: 741255340
2025-03-31 14:44:14 +00:00
rightnao
f223b26e2e [FloatingToolbar][DockedToolbar] Integrate tokens and add m3 styles
PiperOrigin-RevId: 741220809
2025-03-31 14:42:03 +00:00
pfthomas
cd909c2b7d [Slider] Add centered configuration
- add attr `centered` to enable the new centered configuration, see https://m3.material.io/components/sliders/overview#227dd2d1-8be6-4646-b8e6-f05bbac583e5
- prevent drawing the ticks in the gap spaces around the thumb and under it for better visuals

PiperOrigin-RevId: 741161174
2025-03-27 15:42:51 +00:00