3746 Commits

Author SHA1 Message Date
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
pekingme
1adc50110e [AppBarLayout] Fixed the bug that setBackground will reset the internal MaterialShapeDrawable for lift-on-scroll feature.
PiperOrigin-RevId: 760744509
2025-05-21 17:55:04 +00:00
pubiqq
9ae6b7f4b3 [Slider] Get default minTouchTargetSize from material attributes
Resolves https://github.com/material-components/material-components-android/pull/4546

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

PiperOrigin-RevId: 760682756
2025-05-21 17:54:26 +00:00
pubiqq
ae686543ff [Chip] Get default minTouchTargetSize from material attributes
Resolves https://github.com/material-components/material-components-android/pull/4545

  - 8d3f96b7af18c72271b6957d2463bf72ee6c215f by pubiqq <serj.ese@gmail.com>

PiperOrigin-RevId: 760679794
2025-05-21 17:53:42 +00:00
Material Design Team
91e6a97a58 [DatePicker][A11y] Replace the deprecated announcement API used for month navigation
PiperOrigin-RevId: 760547908
2025-05-19 14:34:27 +00:00
dsn5ft
7bd56f559f [Internal] Add missing @Retention(RetentionPolicy.SOURCE) to a few enum interfaces
PiperOrigin-RevId: 759661555
2025-05-19 14:32:20 +00:00
dsn5ft
08de7b042d [HideViewOnScrollBehavior] Fix bugs where setViewEdge() can't be used because EDGE_ constants are package private, and also client's setViewEdge() was being overridden by the internal setViewEdge() behavior in onLayout()
Resolves https://github.com/material-components/material-components-android/issues/4770

PiperOrigin-RevId: 759637107
2025-05-16 17:05:32 +00:00
pubiqq
a3a7d86cba [FloatingActionButton] Fix the width calculation in the wrap_content extend strategy
Resolves https://github.com/material-components/material-components-android/pull/4695
Resolves https://github.com/material-components/material-components-android/issues/4630

  - 1561cbdaa20738e6c57c8f70a2f4a3f75f4086b4 by pubiqq <serj.ese@gmail.com>

PiperOrigin-RevId: 759607074
2025-05-16 17:01:31 +00:00
leticiars
2749544dce [OverflowLinearLayout] Add filterTouchesWhenObscured=true to button layout.
PiperOrigin-RevId: 758795342
2025-05-15 17:10:16 +00:00
leticiars
914900e342 [OverflowLinearLayout] Added OverflowLinearLayout to support adaptive behavior of the floating and docked toolbars.
When wrapping the floating/docked toolbar's children in a OverflowLinearLayout, the toolbar will automatically move children to an overflow menu when there's not enough screen space for all the items to fit in the toolbar.

The children moved to an overflow menu will always be the ones at the end of the toolbar that do not fit the max toolbar size. An overflow button will be automatically placed as the last child of the toolbar when overflow happens.

PiperOrigin-RevId: 758661471
2025-05-14 19:16:20 +00:00
rightnao
43f2b908a1 [SearchBar] Add attribute to control when to impose max width based on a percentage of available width in parent
PiperOrigin-RevId: 758280412
2025-05-14 19:14:06 +00:00
pubiqq
6b35213c6b [TabLayoutMediator] Don't try to detach an already detached TabLayout
Resolves https://github.com/material-components/material-components-android/pull/4547

GIT_ORIGIN_REV_ID=15c001c9fed1a70c0dc8adbe1477687c2b0a97ed
PiperOrigin-RevId: 757914288
2025-05-13 16:43:22 +00:00