3757 Commits

Author SHA1 Message Date
rightnao
85e2fd04bd [MaterialButton] Update corner radius behavior to override StateListShapeAppearance if set
PiperOrigin-RevId: 784640767
2025-07-21 14:34:20 +00:00
pekingme
e39f765a9d [ProgressIndicator] Updated to not throw exceptions for calling setIndeterminateDrawable and setDeterminateDrawable during the initialization.
PiperOrigin-RevId: 784565249
2025-07-21 14:33:38 +00:00
rightnao
4db190003e [MaterialShapeDrawable] Introduce ShapeAppearance interface to reduce branching between ShapeAppearanceModel and StateListShapeAppearanceModel
PiperOrigin-RevId: 784395554
2025-07-21 14:32:30 +00:00
pekingme
24cddabbb8 [ProgressIndicator] Added APIs for customizing wave amplitude ramping.
PiperOrigin-RevId: 784177043
2025-07-17 20:47:27 +00:00
pekingme
2ca567def6 [LoadingIndicator] Added a default static drawable, which is displayed when the animation is disabled.
PiperOrigin-RevId: 782930739
2025-07-16 18:56:52 +00:00
pekingme
f300ba0e7d [LoadingIndicator] Fixed the animation no constant rotation.
PiperOrigin-RevId: 780327353
2025-07-09 15:31:38 +00:00
pfthomas
3e5c1a87dd [DatePicker] Enable autosizing for day of week labels
PiperOrigin-RevId: 776715246
2025-06-27 22:05:38 +00:00
rightnao
ef6e07da3f [Catalog][OverflowLayout] Add tooltip to overflow button in Overflow Layout and update docked toolbar + floating toolbar demos to have tooltips
PiperOrigin-RevId: 776691798
2025-06-27 22:05:14 +00:00
pubiqq
09e77fa14a [Chip] Fix close icon tint
Resolves https://github.com/material-components/material-components-android/pull/4824

  - 050b1f17cebd2c3ca36bcec8c036b44ea06cd269 by pubiqq <serj.ese@gmail.com>

PiperOrigin-RevId: 776656483
2025-06-27 22:04:39 +00:00
dsn5ft
e0b6a2740f [Shape] Internal cleanup
PiperOrigin-RevId: 776623191
2025-06-27 17:18:32 +00:00
pubiqq
a17e208d45 [Internal] Restore binary compatibility (ViewOverlay)
Resolves https://github.com/material-components/material-components-android/issues/4821
Resolves https://github.com/material-components/material-components-android/pull/4822

  - 88fa6714b38456cd39e2104992034a99bab00fc7 by pubiqq <serj.ese@gmail.com>

PiperOrigin-RevId: 776589862
2025-06-27 16:31:41 +00:00
kendricku
7c162ef28c [DatePicker] Fix Talkback issues with the hint text by adding a TtsSpan.TYPE_VERBATIM so that the hints are read as verbatim text by screen readers.
PiperOrigin-RevId: 776123945
2025-06-27 16:28:30 +00:00
pfthomas
dcfe2ee9ee [TimePicker] Default to text input mode in landscape
PiperOrigin-RevId: 775714779
2025-06-27 16:16:52 +00:00
dsn5ft
5853d725fa [Snackbar] Ignore bottom gesture inset if anchor view is specified to avoid infinite loop flicker
Resolves https://github.com/material-components/material-components-android/issues/3462

PiperOrigin-RevId: 775698551
2025-06-27 16:15:56 +00:00
rightnao
ef95e93400 [SearchView] Set touchscreenBlocksFocus to false to enable keyboard navigation between searchview
PiperOrigin-RevId: 775363522
2025-06-27 16:10:32 +00:00
pfthomas
1ee07687af [BottomSheet] Make handle respond to keyboard input
PiperOrigin-RevId: 775207544
2025-06-27 16:09:03 +00:00
kendricku
3625174cc3 [TimePicker] Add toggle button, split button, and time picker AM/PM sound effects.
These were not present because the sound effect is only automatically triggered on click, not on checked state.

PiperOrigin-RevId: 774911150
2025-06-27 16:06:44 +00:00
pubiqq
1b083360c8 [FloatingActionButton] Use the current labelOpacity as the initial animation value
Resolves https://github.com/material-components/material-components-android/pull/4696

  - 3a1aa137a035244f281a40ca9fe7c39b4a36ae1f by pubiqq <serj.ese@gmail.com>

PiperOrigin-RevId: 773061850
2025-06-23 17:54:01 +00:00
hunterstich
eb935e60b0 [Process] Updated component string translations
PiperOrigin-RevId: 772911687
2025-06-18 14:32:40 +00:00
pubiqq
6b41a60af9 [FloatingActionButton] Fix labelOpacity property
Resolves https://github.com/material-components/material-components-android/pull/4594

  - f3ae9c5ac4f457ffeee893e17c945cf538ff41cf by pubiqq <serj.ese@gmail.com>

PiperOrigin-RevId: 772501116
2025-06-18 14:19:04 +00:00
pekingme
bbd942c11b [MaterialButton] Updated the shapes of buttons when the orientation is changed.
Resolves https://github.com/material-components/material-components-android/issues/4809

PiperOrigin-RevId: 772043388
2025-06-18 14:17:50 +00:00
pekingme
0e6d4f4658 [ButtonGroup] Fixed connected button groups to not morph button size.
Resolves https://github.com/material-components/material-components-android/issues/4782

PiperOrigin-RevId: 771105111
2025-06-18 14:16:23 +00:00
pfthomas
b5aee6682c [TimePicker][a11y] Set accessibilityDelegate for time announcement when editing
Also set `hintText` to announce hour/minute with the number.

PiperOrigin-RevId: 771085617
2025-06-18 14:15:00 +00:00
Material Design Team
787ad71352 [Date Picker][A11y] Replace deprecated announcement API with accessibility pane title
PiperOrigin-RevId: 771083111
2025-06-18 14:13:04 +00:00
pekingme
6d8d750735 [Button] Fixed width morph in vertical button groups.
PiperOrigin-RevId: 770651707
2025-06-12 20:05:47 +00:00
pubiqq
dadbfa4819 [LinearProgressIndicator] Fix stop indicator size when changing track thickness
Resolves https://github.com/material-components/material-components-android/pull/4669

  - 249bbb35a4f50aafc56c208e19569f2a72691b46 by pubiqq <serj.ese@gmail.com>

PiperOrigin-RevId: 769738304
2025-06-12 20:05:15 +00:00
Material Design Team
f843ab0f1f [Date Picker] Avoid re-creating text input picker fragment on configuration changes
Addresses an issue where the input text view was losing entered text and cursor position during configuration changes.

PiperOrigin-RevId: 769580976
2025-06-10 19:32:18 +00:00
pekingme
7df9b07882 [Button] Fixed checked non-checkable button not recover shape and container color
Resolves https://github.com/material-components/material-components-android/issues/4808

PiperOrigin-RevId: 768053646
2025-06-10 19:31:49 +00:00
pfthomas
2d73a5dca6 [TimePicker][a11y] Set accessibilityDelegate for time announcement when editing
PiperOrigin-RevId: 767673170
2025-06-05 18:41:20 +00:00
dsn5ft
d75459102f [SideSheetDialog] Add support for enabling edge to edge via setFitsSystemWindows()
PiperOrigin-RevId: 767168515
2025-06-05 18:40:28 +00:00
Leo
86372cada3 [Docs][MaterialSplitButton.java] Updated usage documentation
Resolves https://github.com/material-components/material-components-android/pull/4795

  - bf180a943ae3fd1fc5c785955de1f52faecfe1eb by Leo <ando9836@jec.ac.jp>

PiperOrigin-RevId: 766667719
2025-06-03 15:37:40 +00:00
pfthomas
56a981ddc2 [TimePicker][i18n] Update string translations.
Resolves https://github.com/material-components/material-components-android/issues/4802

PiperOrigin-RevId: 766656496
2025-06-03 15:37:09 +00:00
Material Design Team
65e7d8afc4 [DatePicker] Set cursor to end of input text field when input is opened
PiperOrigin-RevId: 766655654
2025-06-03 15:36:25 +00:00
ls9487
167451b532 [MaterialTimePicker] set time wrongly in TimeFormat.CLOCK_12H
Resolves https://github.com/material-components/material-components-android/pull/4495

GIT_ORIGIN_REV_ID=6f77987cc4d65033173a70c86d5ecf1e9ad1268e
PiperOrigin-RevId: 766649090
2025-06-03 15:35:46 +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
kendricku
069bd97852 [i18n] Update string translations.
PiperOrigin-RevId: 766251829
2025-06-02 20:27:04 +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
leticiars
7428b2b49b [OverflowLinearLayout][Button] Overflow menu item's text should be CharSequence
PiperOrigin-RevId: 764904265
2025-05-30 13:35:46 +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
leticiars
fa0e908340 [OverflowLinearLayout] Use button's text or content description as default menu item text.
PiperOrigin-RevId: 764857390
2025-05-30 13:34:05 +00:00
dsn5ft
2f79f31064 [FAB] Fix typos in comments
PiperOrigin-RevId: 764662791
2025-05-29 15:58:10 +00:00
kendricku
1501d08876 [Extended FAB][AppBar] Fix Extended FAB behavior demo to shrink and extend as expected.
Also:
- Library fix to the AppBarLayout calculations for extended FAB versus FAB visibility.
- Removed the M3 Expressive toolbar min heights in favor of actionBarSize.

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

PiperOrigin-RevId: 764380548
2025-05-28 22:50:57 +00:00
dsn5ft
e62e66d7bc [Slider] Add ability to specify purely visual tick count in continuous mode
PiperOrigin-RevId: 764271536
2025-05-28 22:49:09 +00:00
Material Design Team
ab52e6afc4 [Slider][A11y] Prevent duplicate accessibility announcements
PiperOrigin-RevId: 764175507
2025-05-28 13:32:21 +00:00
pekingme
981877d06d [ButtonGroup] Added overflow feature.
PiperOrigin-RevId: 762686060
2025-05-27 18:47:43 +00:00
Material Design Team
5af24b321a Automated g4 rollback of changelist 762520075
PiperOrigin-RevId: 762603362
2025-05-27 18:46:28 +00:00
Material Design Team
917ce60aa5 [Slider][A11y] Prevent duplicate accessibility announcements
PiperOrigin-RevId: 762520075
2025-05-23 21:54:41 +00:00
dsn5ft
d16a19364c [MaterialShapeDrawable] Update ShapeAppearanceModel.Builder to not use extra ContextThemeWrapper for shape appearance overlay due to performance concerns
PiperOrigin-RevId: 762498280
2025-05-23 21:53:22 +00:00
Material Design Team
d438f09222 [TextField][A11y] Replace deprecated announceForAccessibility with accessibility live region
PiperOrigin-RevId: 762446288
2025-05-23 21:36:18 +00:00
leticiars
c1a432fdc0 [OverflowLinearLayout] Modify some layout params overriden methods.
PiperOrigin-RevId: 761677407
2025-05-22 13:30:41 +00:00