3619 Commits

Author SHA1 Message Date
pekingme
659e3bcb6d [ProgressIndicator] Updated SpringAnimation's minimum visible change and added APIs to customize spring force in DeterminateDrawable.
PiperOrigin-RevId: 798225060
2025-08-27 13:37:26 -07:00
Material Design Team
e69709f5fa [TimePicker][A11y] Add tooltip to MaterialTimePicker mode toggle button
Refactored the logic for retrieving the toggle button's icon and content description into separate methods and added a tooltip to the mode toggle button.

PiperOrigin-RevId: 797722507
2025-08-27 13:35:50 -07:00
rightnao
c38892019c [Lists] Updating List catalog demo to spec
PiperOrigin-RevId: 797102136
2025-08-20 14:57:05 +00:00
Material Design Team
089372f249 [TimePicker][A11y] Add keyboard support to clock input mode
Enables focus on the `ClockFaceView` and implements `onKeyDown` to allow users to navigate between clock values using DPAD keys. DPAD_RIGHT/UP increments the selected value, while DPAD_LEFT/DOWN decrements it.

PiperOrigin-RevId: 796951982
2025-08-20 14:54:18 +00:00
pubiqq
78189012da [BottomNavigation] Fix navigation item layout in non-compact windows
Resolves https://github.com/material-components/material-components-android/pull/4793

  - 7277b3745c15b6058b59009380d3ce45533a76d2 by pubiqq <serj.ese@gmail.com>

PiperOrigin-RevId: 796946899
2025-08-20 14:53:17 +00:00
conradchen
4449354013 Automated g4 rollback of changelist 796431568
PiperOrigin-RevId: 796863604
2025-08-20 14:52:46 +00:00
pekingme
c092695afd [ProgressIndicator] Updated SpringAnimation's minimum visible change and added APIs to customize spring force in DeterminateDrawable.
PiperOrigin-RevId: 796431568
2025-08-20 14:52:07 +00:00
Material Design Team
c7fa5dc6e9 [TextField][A11y] Add tooltip support to TextInputLayout icons
- The icon's `contentDescription` is used as the tooltip text.
- Tooltips are only shown for icons that are interactive (focusable). Decorative-only icons will not display a tooltip.
- `CheckableImageButton` is updated to provide a callback for when its focusable state changes, which is used to trigger tooltip updates.
- API-level differences are handled to ensure that custom `OnLongClickListeners` are not overridden by the tooltip's long-press listener on older platforms (pre-API 26).

PiperOrigin-RevId: 794951524
2025-08-20 14:50:08 +00:00
rightnao
babc9fc05e [List] Added Multi section ListItemViewHolder bind method and demo
PiperOrigin-RevId: 793813888
2025-08-20 14:49:25 +00:00
rightnao
ab86a01e9f [Lists] Added segmented list style, public attrs, and catalog demos
PiperOrigin-RevId: 793796271
2025-08-20 14:48:46 +00:00
pekingme
ac82767b56 [LoadingIndicator] Added showDelay and minHideDelay attribute.
Resolves https://github.com/material-components/material-components-android/issues/4799

PiperOrigin-RevId: 793449299
2025-08-20 14:48:01 +00:00
pekingme
90a1f22efb [ProgressIndicator] Moved showDelay and minHideDelay attrs to resources module.
PiperOrigin-RevId: 793441910
2025-08-20 14:47:12 +00:00
rightnao
3c332f9a27 [Lists] Introduce ListItemLayout and ListItemViewHolder with catalog demo
PiperOrigin-RevId: 791886366
2025-08-08 17:47:51 +00:00
dsn5ft
015e0534e1 [Toolbar] Add support for navigation button with circle background
PiperOrigin-RevId: 790777821
2025-08-04 20:30:43 +00:00
rightnao
7fe9ef9e06 [Theme] Added missing Shape Attributes to Dialog themes
PiperOrigin-RevId: 789801786
2025-08-01 18:38:18 +00:00
dsn5ft
ab3333915a [i18n] Update library string translations
PiperOrigin-RevId: 788056533
2025-07-28 17:12:44 +00:00
Material Design Team
d8cc690b51 [ExposedDropdownMenu][A11y] Add keyboard support for dropdown menus
PiperOrigin-RevId: 788007779
2025-07-28 17:10:55 +00:00
Material Design Team
223bf15468 [DatePicker] Fix header layout overlapping in landscape
Replaced the FrameLayout in the landscape header with a ConstraintLayout to prevent the title and selection text from overlapping. Enabled autoSizeTextType on the selection text view to handle long text.

PiperOrigin-RevId: 786244700
2025-07-24 18:35:18 +00:00
rightnao
2f0935a706 [Card] Support StateListShapeAppearance in MaterialCardView
PiperOrigin-RevId: 785529211
2025-07-24 18:34:07 +00:00
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