pekingme
bfee8a74d7
[Tokens] Upgraded to v0.175.
...
PiperOrigin-RevId: 572648883
2023-10-12 11:04:28 -07:00
rightnao
9a2347bda5
[Carousel] Force hero strategy to be start-aligned if there are not enough items to make it center-aligned
...
Resolves https://github.com/material-components/material-components-android/issues/3626
PiperOrigin-RevId: 572641635
2023-10-12 11:03:50 -07:00
Material Design Team
be1395bcef
[SearchBar] Set the editable property within SearchBar's AccessibilityNodeInfo representation.
...
PiperOrigin-RevId: 572589922
2023-10-12 11:03:15 -07:00
rightnao
cbb380df61
[Carousel] Add logic for multibrowse strategy to change strategy when number of items is less than the number of keylines
...
Resolves https://github.com/material-components/material-components-android/issues/3598
PiperOrigin-RevId: 572078262
2023-10-10 10:46:28 -07:00
hunterstich
0356f24a63
[Carousel] Fixed focus order when using keyboard navigation for hero carousels.
...
When using the keybaord to move between items, FocusFinder would occasionally skip an item because it was using the unmasked bounds of each item to compare their distance.
PiperOrigin-RevId: 572025177
2023-10-10 10:44:21 -07:00
rightnao
ed4647d5df
[Carousel] Cleaning up multi-browse strategy and removing compact arrangement
...
PiperOrigin-RevId: 572006115
2023-10-10 10:43:37 -07:00
Material Design Team
93360a5a5d
[TextInputLayout] Fix onMeasure() infinite loop bug caused by posting requestLayout() before endLayout is fully rendered.
...
Brief explanation: in TextInputLayout#onMeasure, TextInputLayout will try to send a post to trigger requestLayout() method based on the boolean value returned from updateDummyDrawbles() method, but in shouldUpdateEndDummyDrawable(), we try to get the endLayout.getMeasureWidth() which is not reliable, if the endLayout hasn't rendered fully, the getMeasureWidth() will return 0 making the updateDummyDrawables() to return TRUE to trigger requestLayout() in an infinite loop.
To fix this issue, we need to introduce ViewTreeObserver to help us to run posing the requstLayout() after endLayout/startLayout is fully rendered.
PiperOrigin-RevId: 571765829
2023-10-10 10:21:12 -07:00
dsn5ft
5559cbc7c7
[Predictive Back][Search] Update to use decelerate interpolator
...
PiperOrigin-RevId: 571442671
2023-10-10 10:20:11 -07:00
rightnao
78cc54b8c3
[Badge][NavRail][BottomNavBar] Adjust badge vertical offset for certain components to fit design requirements
...
PiperOrigin-RevId: 569527192
2023-10-02 13:41:39 +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
dsn5ft
bccbd4f778
[Predictive Back][NavigationView] Fix issue where predictive back is not enabled in NavigationView after rotating the screen or restarting the activity when the NavigationView is already opened as a drawer
...
Resolves https://github.com/material-components/material-components-android/issues/3593
PiperOrigin-RevId: 569181523
2023-10-02 13:38:12 +00:00
rightnao
d5d604d0cc
[Carousel] Disallowing center aligned hero strategy with only 2 items since it does not make any sense. With only 2 items there can only be a start state and end state with the hero strategy.
...
Resolves https://github.com/material-components/material-components-android/issues/3589
PiperOrigin-RevId: 568965460
2023-10-02 13:36:53 +00:00
rightnao
8cb444b268
[Carousel] Fix issue with uncontained carousel not having a proper end scroll value due to assumption made in end scroll calculation
...
resolves https://github.com/material-components/material-components-android/issues/3599
PiperOrigin-RevId: 568948116
2023-10-02 13:36:19 +00:00
dsn5ft
a51561d8b8
[SearchView][Predictive Back] Fix issue where predictive back is not enabled in SearchView after rotating the screen or restarting the activity when the SearchView is already expanded
...
Resolves https://github.com/material-components/material-components-android/issues/3594
Resolves https://github.com/material-components/material-components-android/pull/3604
PiperOrigin-RevId: 568869369
2023-10-02 13:35:25 +00:00
rightnao
4a6ae4d0b6
[Carousel] Update scroll offset to scroll to the estimated position that it was at upon an initial load
...
Resolves https://github.com/material-components/material-components-android/issues/3590
PiperOrigin-RevId: 568642330
2023-09-26 20:55:25 -04:00
hunterstich
c418063205
[Carousel] Fixed strategies crashing when there is not enough available space for a large and a small item
...
If the carousel container is not large enough to fit a small item and large item that is at least as large as the minimum small item size, mutli-browse and hero strategies will create an arrangment with a single, large item.
PiperOrigin-RevId: 568610428
2023-09-26 20:54:33 -04:00
Material Design Team
31af945caa
[MaterialCardView] Support android:duplicateParentState.
...
MaterialCardView hasn't shown the pressed ripple effect if the parent view is
pressed and it has `android:duplicateParentState=true`, because its foreground
drawable is not a RippleDrawable. This CL fixes the issue.
PiperOrigin-RevId: 567117430
2023-09-21 14:46:51 +00:00
rightnao
5e6ea58280
[Badge] Add note in attachBadgeDrawable method docs about menu item views being re-used when there is a structural change in the menu. Since badges are attached to the views, this may change the menu item that the badge is intended for
...
PiperOrigin-RevId: 566995151
2023-09-21 14:45:39 +00:00
pekingme
bc824b4344
[Ripple] Updated focused and pressed state from 0.12 to 0.10 to increase the contrast ratio with tonal surface color.
...
PiperOrigin-RevId: 566768258
2023-09-20 12:30:59 +00:00
pekingme
1e9f5f0730
[AppBarLayout] Simplified logics to animate the container color between lifted state and the default state.
...
PiperOrigin-RevId: 566754407
2023-09-20 12:30:16 +00:00
dsn5ft
8d83a31b6b
[Predictive Back][Search] Fix issue where modal accessibility is not reset after collapsing search view predictively, which caused the screen to appear frozen when using TalkBack
...
PiperOrigin-RevId: 566750080
2023-09-20 12:29:04 +00:00
rightnao
93660d4241
[Carousel] Tweak uncontained strategy logic to adjust medium size items to improve motion
...
PiperOrigin-RevId: 566720825
2023-09-19 20:29:10 +00:00
dsn5ft
c4ae01a5a5
[AppBarLayout] Fix dynamic status bar foreground lift on scroll color when using Tonal Surface Color on API Level 33
...
Resolves https://github.com/material-components/material-components-android/issues/3530
Resolves https://github.com/material-components/material-components-android/issues/3585
PiperOrigin-RevId: 566609767
2023-09-19 20:28:23 +00:00
hunterstich
b80d9a5ef4
[Carousel] Fixed formatted for KeylineState and KeylineStateList
...
PiperOrigin-RevId: 565711087
2023-09-15 17:26:58 -04:00
hunterstich
7151714711
[Carousel] Fixed keyline shifting in RTL for uncontained carousels
...
Resolves https://github.com/material-components/material-components-android/issues/3554
Resolves https://github.com/material-components/material-components-android/issues/3580
PiperOrigin-RevId: 565654556
2023-09-15 17:26:05 -04:00
pubiqq
4ce7e4c8fa
[Carousel] Reduce the number of truncations in intermediate calculations
...
Resolves https://github.com/material-components/material-components-android/pull/3581
Resolves https://github.com/material-components/material-components-android/issues/3579
GIT_ORIGIN_REV_ID=1bcb42de0535edac134a6fc27dcb14b22f7dc1a5
PiperOrigin-RevId: 565653783
2023-09-15 17:25:17 -04:00
dsn5ft
5f2b4b2531
[CollapsingToolbarLayout] Fixed title collapse fade mode color to use a Tonal Surface role instead of elevation overlay
...
Resolves https://github.com/material-components/material-components-android/issues/3525
PiperOrigin-RevId: 564678269
2023-09-12 10:48:57 -04:00
dsn5ft
569ddac527
[AppBarLayout] Fix dynamic status bar foreground lift on scroll color when using Tonal Surface Color
...
Resolves https://github.com/material-components/material-components-android/issues/3530
PiperOrigin-RevId: 564364138
2023-09-12 10:47:09 -04:00
pekingme
43242f20de
[TopAppBar] Fixed that liftOnScrollColor doesn't respect to setLifted when liftOnScroll is set to false.
...
Resolves https://github.com/material-components/material-components-android/issues/3523
PiperOrigin-RevId: 563829477
2023-09-08 16:10:50 -04:00
pubiqq
a10c5083a9
[MaterialSwitch] Fix drawable scaling for API < 23
...
Resolves https://github.com/material-components/material-components-android/pull/3513
GIT_ORIGIN_REV_ID=d6b880efdab77b6c1171b3f53ee8d3fcf568f838
PiperOrigin-RevId: 563748930
2023-09-08 13:08:54 -04: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
pekingme
b5d6f1ae45
[ActionBar] Removed layered drawable for the background after tonal surface color.
...
PiperOrigin-RevId: 563179427
2023-09-07 12:37:18 +00:00
leticiars
9a4888f958
[TextInputLayout] Mutate cursor drawable before tinting it.
...
Resolves https://github.com/material-components/material-components-android/issues/3491
PiperOrigin-RevId: 561722342
2023-08-31 15:11:02 -04:00
pubiqq
de271320e4
[BottomSheet] Fix sheet corners animation
...
Resolves https://github.com/material-components/material-components-android/pull/3541
Resolves https://github.com/material-components/material-components-android/issues/3540
GIT_ORIGIN_REV_ID=747db4e9eeed0b14ea1f949862176346afc4944a
PiperOrigin-RevId: 560143863
2023-08-25 19:25:16 +00:00
rightnao
c6ea2d4040
[Carousel] Update vertical scroll speed to be faster
...
PiperOrigin-RevId: 559888221
2023-08-25 19:21:59 +00:00
rightnao
3d84841cad
[Carousel][A11y] Fix some a11y bugs in Carousel
...
PiperOrigin-RevId: 559881261
2023-08-25 17:51:59 +00:00
pfthomas
5f1cab65b1
[MaterialDatePicker] Fix header layout overlapping
...
PiperOrigin-RevId: 559538381
2023-08-24 20:50:49 +00:00
pekingme
6b627c20e2
[Tabs] Integrated divider token output into the background drawables.
...
PiperOrigin-RevId: 559477915
2023-08-23 22:22:19 +00:00
Material Design Team
a782e7a1d8
[MaterialDatePicker][a11y] Fixing the "Column of Days:" announcement causing Talkback verbosity
...
PiperOrigin-RevId: 559224257
2023-08-23 22:21:37 +00:00
rightnao
b6f6eb555a
[Carousel] Center aligned uncontained carousel
...
PiperOrigin-RevId: 559215330
2023-08-23 19:31:24 +00:00
pfthomas
faf9a32770
[M3][Color] Add Meizu to dynamic colors allowlist
...
PiperOrigin-RevId: 559204940
2023-08-23 19:30:19 +00:00
rightnao
9d81cac125
[Carousel] Add left-aligned uncontained strategy
...
PiperOrigin-RevId: 559197283
2023-08-23 19:28:53 +00:00
pekingme
7d8681f71d
[Token] Added a comment before overridden resources.
...
PiperOrigin-RevId: 559136855
2023-08-23 19:28:08 +00:00
rightnao
eba40e9345
[NavigationView] Set material drawable background if the background has been set as a ColorStateList
...
resolves https://github.com/material-components/material-components-android/issues/3529
PiperOrigin-RevId: 558861471
2023-08-21 19:12:27 +00:00
rightnao
966f7daec9
[Carousel] Fix orientation not correct in item decoration calculations
...
Resolves https://github.com/material-components/material-components-android/issues/3500
PiperOrigin-RevId: 558825973
2023-08-21 19:11:40 +00:00
pubiqq
dc91b39d7c
[Carousel] Update mask size on size change if mask x percentage has been set
...
Resolves https://github.com/material-components/material-components-android/pull/3450
GIT_ORIGIN_REV_ID=df8a325da6e4a796ab33d93e2ba165e40da8733e
Co-authored-by: imhappi
PiperOrigin-RevId: 558207460
2023-08-18 22:40:13 +00:00
Material Design Team
1a9d54fa41
[M3][Color] Remove resources loader support for tonal surface update
...
PiperOrigin-RevId: 557500242
2023-08-16 20:45:38 +00:00
Patrick Zedler
f2ccc116ea
[Theme] Fix swapped error colors for dynamic contrast theme in light mode
...
Resolves https://github.com/material-components/material-components-android/pull/3516
GIT_ORIGIN_REV_ID=36239feca8a1a061279087b46403d2d8dac69ae1
PiperOrigin-RevId: 556179631
2023-08-12 02:39:17 +00:00
pekingme
8204856dd4
[Token][Color] Upgraded to v0.170 for tonal surface colors.
...
PiperOrigin-RevId: 555230534
2023-08-09 19:03:25 +00:00
afohrman
02dc77923b
[Predictive Back] Fixed IllegalStateException crashes caused by MaterialBackAnimationHelper.
...
PiperOrigin-RevId: 555180647
2023-08-09 16:09:42 +00:00