rightnao
0e1724824a
[NavigationView] Set navigation menu item's a11y role description so it doesn't default to 'radio button' due to being checkable
...
PiperOrigin-RevId: 830619106
2025-11-11 18:49:41 +00:00
hunterstich
c2051db2a9
[Internal] Avoid calling deprecated edge-to-edge APIs on 35+
...
Resolves https://github.com/material-components/material-components-android/issues/4626
Resolves https://github.com/material-components/material-components-android/issues/4507
Resolves https://github.com/material-components/material-components-android/issues/4732
Resolves https://github.com/material-components/material-components-android/issues/4607
Resolves https://github.com/material-components/material-components-android/pull/4883
PiperOrigin-RevId: 800945380
2025-08-29 11:48:28 -07: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
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
pekingme
981877d06d
[ButtonGroup] Added overflow feature.
...
PiperOrigin-RevId: 762686060
2025-05-27 18:47:43 +00:00
Ga\u00ebtan Muller
65e5f1aba1
[Internal] Remove the internal ViewOverlay compat layer
...
Resolves https://github.com/material-components/material-components-android/pull/4736
GIT_ORIGIN_REV_ID=9eced1439e9503f5cc88cc3f2834f55e5466448c
PiperOrigin-RevId: 756779136
2025-05-12 18:15:01 +00:00
rightnao
dcfbdff79c
[TopAppBar] Add attribute to center based on whole container
...
PiperOrigin-RevId: 747496721
2025-04-17 23:56:54 +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
dsn5ft
0697f6fe89
[Gradle] Enable non transitive R classes (resource namespacing) and fix errors
...
PiperOrigin-RevId: 738871402
2025-03-20 18:34:33 +00:00
rightnao
1dc9a1cc56
[Searchbar] Fix NPE with hiding navigation icon
...
PiperOrigin-RevId: 731002808
2025-02-25 21:50:34 +00:00
pubiqq
bc2fdeadaf
[Internal] Prefer platform methods to compat ones
...
Resolves https://github.com/material-components/material-components-android/pull/4532
GIT_ORIGIN_REV_ID=180dec736f2521579e483317a4d537629d8f247b
PiperOrigin-RevId: 715494344
2025-01-15 18:06:07 +00:00
pekingme
8598aa6ae9
[CollapsingToolbarLayout] Fixed incorrect title and subtitle positioning.
...
PiperOrigin-RevId: 712776905
2025-01-07 14:33:47 +00:00
rightnao
05f8c52342
[FloatingToolbar] Add inset handling
...
PiperOrigin-RevId: 712737242
2025-01-07 14:32:21 +00:00
pekingme
73b577dd6a
[TopAppBar] Added collapsing subtitle.
...
PiperOrigin-RevId: 700042153
2024-12-02 19:42:27 +00:00
rightnao
7f01739644
[TextInputLayout] Add hintMaxLines attribute
...
PiperOrigin-RevId: 685884472
2024-10-15 16:51:14 +00:00
dsn5ft
3ce7c2bb18
[SearchBar] Update predictive back device corner logic to handle each corner independently to fix issue where bottom corners are incorrectly rounded after canceling back gesture
...
PiperOrigin-RevId: 677788624
2024-09-23 15:10:54 +00:00
pubiqq
23aca03255
[Internal] Remove pre-Lollipop checks
...
Resolves https://github.com/material-components/material-components-android/pull/4266
GIT_ORIGIN_REV_ID=1de7808e66dd6666c893217c76c7499afe2df6a3
PiperOrigin-RevId: 669688797
2024-09-03 13:31:29 +00:00
pubiqq
204811089d
[Internal] Replace deprecated androidx.core.view.* methods
...
Resolves https://github.com/material-components/material-components-android/pull/4180
GIT_ORIGIN_REV_ID=8e4ec29abacc33cde748b8f07f0ba5c251cef395
PiperOrigin-RevId: 656004130
2024-07-25 19:09:36 +00:00
rightnao
20f92dfb51
[NavigationDrawer] Notify each adapter item of a potential change in case there are any item changes
...
Resolves https://github.com/material-components/material-components-android/issues/4168
PiperOrigin-RevId: 646154192
2024-06-25 14:53:10 +00:00
shawn hwang
3a31eef6f4
[NavigationView] Fixed item being checked instead of submenu item
...
Resolves https://github.com/material-components/material-components-android/pull/4155
Resolves https://github.com/material-components/material-components-android/issues/4187
GIT_ORIGIN_REV_ID=0f539d1e079f4bfcb044db26a4a0064538d29f05
PiperOrigin-RevId: 642317463
2024-06-11 19:00:12 +00:00
rightnao
99e8044f85
[NavigationRail] Add item spacing attribute
...
PiperOrigin-RevId: 639835301
2024-06-05 18:29:56 +00:00
rightnao
60a525a167
[BottomNavigationView][NavigationRailView] Modifying NavigationBarView to match more to specs and restructuring layout to prepare for expressive changes
...
Changes:
- minHeight for BottomNavigationView is actually a minimum height, not an exact height; the bar height now wraps content properly
- For BottomNavigationView, bottom item padding now counts from the bottom of the label group instead of from the lowest label baseline. The label TextViews also have a min height of the line height supplied by the provided TextAppearance. This aligns with our m3 specs
- Structural changes in navigation item layouts. Previously the label and the icon were not aware of each other in a FrameLayout and could potentially overlap; this is no longer the case as they are in a LinearLayout
- padding between icon and label is 4dp as per specs
- Centering logic changed to center the icon and label as a group, not separately
PiperOrigin-RevId: 635922505
2024-05-23 14:54:36 +00:00
pubiqq
8edae9b8cc
[NavigationView] Fix section label alignment in RTL.
...
Resolves https://github.com/material-components/material-components-android/pull/4119
Resolves https://github.com/material-components/material-components-android/issues/4178
GIT_ORIGIN_REV_ID=8bb965ac42ed085a6a3d5541ca846ee263d7d5be
PiperOrigin-RevId: 635461461
2024-05-20 21:18:18 +00:00
pubiqq
26bfdd2257
[NavigationView] Fix subheader and divider insets and use relative listPreferredItemPaddings.
...
Resolves https://github.com/material-components/material-components-android/pull/4122
Resolves https://github.com/material-components/material-components-android/pull/4123
GIT_ORIGIN_REV_ID=911d1af88c0d10c6894bf38546b870430e86b6f9
PiperOrigin-RevId: 634517597
2024-05-16 21:30:24 +00:00
pubiqq
510881a469
[Internal] Stop using deprecated androidx.core.view.* methods
...
Resolves https://github.com/material-components/material-components-android/pull/4117
GIT_ORIGIN_REV_ID=dd157e8360c2511810496693cec1616fce578655
PiperOrigin-RevId: 632284856
2024-05-13 17:37:38 +00:00
Ga\u00ebtan Muller
b3fe6a7f61
[Cleanup] Remove redundant version checks for api <= 19.
...
Resolves https://github.com/material-components/material-components-android/pull/3849
GIT_ORIGIN_REV_ID=47bb2fcc8031740e5a7d4f741f1ada2af025e126
PiperOrigin-RevId: 632154861
2024-05-09 18:46:02 +00:00
dsn5ft
b56afa75a9
[SearchView] Update back arrow to be auto mirrored for RTL
...
PiperOrigin-RevId: 622863529
2024-04-09 18:46:12 +00:00
pfthomas
5bf6831b14
[NavDrawer][a11y] Fix wrong item selected after click
...
PiperOrigin-RevId: 616214272
2024-03-20 18:47:11 +00:00
pubiqq
7674e12ea8
[CollapsingToolbarLayout] Fix text shadow fading when transitioning between expanded and collapsed states
...
Resolves https://github.com/material-components/material-components-android/pull/3641
GIT_ORIGIN_REV_ID=7243f7a2f09b04caceec488443b1652a8ffef961
PiperOrigin-RevId: 578838845
2023-11-06 13:57:49 +00:00
dsn5ft
094e3e21ea
[CollapsingToolbarLayout] Fix issue where expanded text gets ellipsized too aggressively when using title fade mode and the toolbar has menu items
...
PiperOrigin-RevId: 569287167
2023-10-02 13:39:52 +00:00
pubiqq
0663019f45
[Color] Add ColorStateListDrawable support
...
Resolves https://github.com/material-components/material-components-android/pull/3538
GIT_ORIGIN_REV_ID=1bf9e320dc148e1bc959e7577372d3a393f35574
PiperOrigin-RevId: 563258432
2023-09-07 12:37:54 +00:00
pfthomas
917da52393
[NavigationDrawer] Do not count headers for accessibility
...
PiperOrigin-RevId: 540975970
2023-06-26 21:25:15 +00:00
pfthomas
022e217770
[Navigation] Add itemTextAppearanceActiveBoldEnabled attr
...
Resolves https://github.com/material-components/material-components-android/issues/3191
Resolves https://github.com/material-components/material-components-android/issues/3293
PiperOrigin-RevId: 539977391
2023-06-14 15:14:24 +00:00
Michael Shafrir
d29ed38f5a
[Internal] Guard against NPE in ManufacturerUtils
...
Resolves https://github.com/material-components/material-components-android/pull/3347
GIT_ORIGIN_REV_ID=0d6a0096b1ec98ba598a559369d7f17ad9d1723c
PiperOrigin-RevId: 524912877
2023-04-17 12:18:07 -07:00
dsn5ft
a4b6f46f0c
[Predictive Back][Search] Update SearchView to support predictive back when set up with SearchBar
...
PiperOrigin-RevId: 520613990
2023-03-30 16:35:21 +00:00
rightnao
8499b83ba1
[BadgeDrawable] Add padding in between top and bottom edges of badge and text
...
PiperOrigin-RevId: 518370027
2023-03-21 20:50:42 +00:00
hunterstich
3f993923b2
[NavigationRailView] Added attribute to control the application of start window inset padding.
...
PiperOrigin-RevId: 516904093
2023-03-15 21:10:53 +00:00
pfthomas
4032a74112
[MaterialDatePicker] Fix keyboard not showing at first in text input mode
...
Resolves https://github.com/material-components/material-components-android/issues/2747
PiperOrigin-RevId: 511501130
2023-02-23 03:46:22 -08:00
pubiqq
e06a11982b
[Internal] Add compat method to get the screen size
...
Resolves https://github.com/material-components/material-components-android/pull/3221
GIT_ORIGIN_REV_ID=9323e23689386561d38b0c8c73114e0db7a30557
PiperOrigin-RevId: 509548792
2023-02-15 10:25:53 -08:00
dsn5ft
bdb6f5dc47
[CollapsingToolbarLayout] Fix issue with multiline title text flickering when titleCollapseMode=fade
...
PiperOrigin-RevId: 506622125
2023-02-02 16:51:40 +00:00
dsn5ft
87ce239b01
[Docs] Remove smart characters from doc comments
...
PiperOrigin-RevId: 494733732
2022-12-12 16:40:01 -05:00
pfthomas
b1bd580d7e
[NavigationDrawer] Updated active text label to use a bold typeface.
...
PiperOrigin-RevId: 487600688
2022-11-18 16:53:12 -05:00
rightnao
cb384c5c2c
[NavigationView] Disable drawing left and right insets if the nav bar is not edge to edge
...
resolves https://github.com/material-components/material-components-android/issues/3016
PiperOrigin-RevId: 484304490
2022-10-28 07:44:17 -07:00
leticiars
a85204eb75
[TextInputLayout] Updated expanded label color to take error color when on error.
...
Partially fixes https://github.com/material-components/material-components-android/issues/2719
PiperOrigin-RevId: 471799584
2022-09-02 12:54:09 -07:00
Material Design Team
44cc9b745c
Add @CanIgnoreReturnValue to some APIs that return this.
...
PiperOrigin-RevId: 468721442
2022-08-22 15:22:27 -04:00
leticiars
00dfeaca53
[Internal] Merge DrawableUtils classes
...
PiperOrigin-RevId: 466426273
2022-08-10 13:14:53 +00:00
leticiars
079371fd10
[Checkbox] Fix pre-21 issue where a child of the layer drawable (the button and/or the icon drawables) may not have its constant state set up properly.
...
PiperOrigin-RevId: 464128801
2022-08-04 14:21:36 -04:00
leticiars
9ca8a80468
[Checkbox] Fixed issue where AppCompatCheckBox would not display its drawable when a Material theme was being used.
...
Instead of nulling android:button and buttonCompat in the Material style, we now check if the legacy drawable is being used, and override that if so.
PiperOrigin-RevId: 463643386
2022-07-28 17:41:12 -04:00
raajkumars
dfbbf609c5
[Internal] Added ExpandCollapseAnimationHelper and MultiViewUpdateListener.
...
PiperOrigin-RevId: 462451046
2022-07-22 15:23:37 +00:00
leticiars
8fae47a39e
[Checkbox] Updated checkbox to M3 look.
...
The checkbox is now composed of an `app:buttonCompat` button drawable (the squared
icon) and an `app:buttonIcon` icon drawable (the checkmark icon) layered on top
of it. The animation has also been updated.
PiperOrigin-RevId: 462244130
2022-07-22 15:22:30 +00:00