5312 Commits

Author SHA1 Message Date
pekingme
2114a11378 [Docs] Updated dev doc for tonal surface colors in affected components.
PiperOrigin-RevId: 556901517
2023-08-14 20:55:38 +00:00
rightnao
c04eaba902 [Release] Updating library version to 1.11.0-alpha02
PiperOrigin-RevId: 556830330
1.11.0-alpha02
2023-08-14 17:15:37 +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
dsn5ft
09a058ddd9 [Internal][Gradle] (deps): Bump com.google.dagger:dagger-android from 2.46.1 to 2.47 in /catalog
Resolves https://github.com/material-components/material-components-android/pull/3498
Resolves https://github.com/material-components/material-components-android/pull/3497
Resolves https://github.com/material-components/material-components-android/pull/3496

PiperOrigin-RevId: 555233563
2023-08-09 19:05:34 +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
manabu-nakamura
6c2dd5d69e [Catalog] Applied edge-to-edge to bottom sheet in Carousel demo
Resolves https://github.com/material-components/material-components-android/pull/3505
Resolves https://github.com/material-components/material-components-android/issues/3504

GIT_ORIGIN_REV_ID=7bdf0989eac11e9b496dd38e9e6fda8acae3b593
PiperOrigin-RevId: 555208372
2023-08-09 17:43:01 +00:00
afohrman
02dc77923b [Predictive Back] Fixed IllegalStateException crashes caused by MaterialBackAnimationHelper.
PiperOrigin-RevId: 555180647
2023-08-09 16:09:42 +00:00
rightnao
af7d09a43d [Catalog] Fix fullscreen vertical carousel to use vertical dividers
resolves https://github.com/material-components/material-components-android/issues/3500

PiperOrigin-RevId: 554496440
2023-08-09 15:51:22 +00:00
pubiqq
6b897c6121 [MaterialDividerItemDecoration] Add RTL support
Resolves https://github.com/material-components/material-components-android/pull/3494

GIT_ORIGIN_REV_ID=774ebec04ab0105c0e2a55890863405f0edfd768
PiperOrigin-RevId: 553822845
2023-08-07 15:21:30 +00:00
Material Design Team
5617e7b084 [M3][Color] Internal color library update
PiperOrigin-RevId: 553658716
2023-08-07 15:20:23 +00:00
pekingme
c7a0adf8dd [AppBarLayout] Added getMaterialShapeBackground() to return a MaterialShapeDrawable object of the background (non-lifted layer).
PiperOrigin-RevId: 553531357
2023-08-04 01:04:40 +00:00
pekingme
720998dcbd [SearchBar] Enforced outline variant to use colorSurface as container color.
PiperOrigin-RevId: 553337995
2023-08-04 01:03:50 +00:00
rightnao
a16f180ce7 [Carousel] Fix issue with next carousel item not being masked properly
PiperOrigin-RevId: 551644125
2023-07-28 17:04:35 +00:00
raajkumars
4e5166f2b7 Automated g4 rollback of changelist 546349642
PiperOrigin-RevId: 551552652
2023-07-27 22:51:06 +00:00
rightnao
ff528621b3 [Carousel] Add a layout listener to recyclerview to refresh keyline state upon size change
PiperOrigin-RevId: 551280769
2023-07-27 22:50:16 +00:00
rightnao
0171624c16 [Carousel][Catalog] Remove default list from Carousel catalog demos as it is not an example of a carousel
PiperOrigin-RevId: 551280479
2023-07-27 22:49:17 +00:00
afohrman
f10153257f [Predictive Back][Search] Fixed UnsupportedOperationException AnimatorSet crash in SearchView.
When navigation icon animation is disabled after the predictive back navigation icon animators are initialized, a strange crash happens in `SearchViewAnimatorSet#updateBackProgress` from the call to `AnimatorSet#setCurrentPlayTime()`, in which the button progress `AnimatorSet` duration is 250 but the total duration is 0. This triggers an [`UnsupportedOperationException`](https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/animation/AnimatorSet.java#928) with the message: `"Error: Play time should always be in between 0 and duration."`.

Adding an early return from `SearchViewAnimatorSet#updateBackProgress` when navigation animation is disabled appears to fix the crash.

PiperOrigin-RevId: 550885523
2023-07-26 17:13:18 +00:00
hunterstich
4c89301330 [BackLayer] Delete BackLayer component
PiperOrigin-RevId: 550566624
2023-07-24 17:12:43 +00:00
TacoTheDank
81d09fb411 [Internal][Gradle] Update gradle wrapper to 7.6.2
Resolves https://github.com/material-components/material-components-android/pull/3481

GIT_ORIGIN_REV_ID=fcc0842cb618ed6490333e06c589be1edfbe902c
PiperOrigin-RevId: 550061688
2023-07-22 05:05:23 +00:00
Material Design Team
0a6a8a971d Stop running Robolectric tests on APIs < 19.
PiperOrigin-RevId: 549688177
2023-07-20 22:21:14 +00:00
pfthomas
db9a6412ec [MaterialSwitch] Amendments to thumb icon size support
Resolves https://github.com/material-components/material-components-android/pull/3364

PiperOrigin-RevId: 549627031
2023-07-20 22:17:48 +00:00
Material Design Team
ed9b54129d Fixed corrupt gradle jar file.
Previous SHA256: 431b359c954de1e08ddeda3daad5e451641f9ff9b0e378a8edd7cdd95b6fe9e1
New SHA256:
14dfa961b6704bb3decdea06502781edaa796a82e6da41cd2e1962b14fbe21a3

Official SHA256 (https://gradle.org/release-checksums/):
14dfa961b6704bb3decdea06502781edaa796a82e6da41cd2e1962b14fbe21a3

PiperOrigin-RevId: 549052451
2023-07-20 22:10:01 +00:00
Material Design Team
04c05826e4 Upgrade Gradle to 7.6.2.
PiperOrigin-RevId: 548821518
2023-07-18 16:58:43 +00:00
rightnao
7cfd30f99b [Catalog][Carousel] Add alignment option to hero carousel
PiperOrigin-RevId: 548725196
2023-07-18 16:51:24 +00:00
rightnao
547156e497 [Carousel] Add carousel alignment attribute
PiperOrigin-RevId: 548719675
2023-07-18 16:50:16 +00:00
Material Design Team
d3dda60296 [M3][Color] Added default framework text colors
PiperOrigin-RevId: 548148997
2023-07-17 15:59:15 +00:00
hunterstich
ba465a2b17 [Color] Update constructor comments
PiperOrigin-RevId: 548145472
2023-07-17 15:58:39 +00:00
rightnao
674ec44429 [Carousel] Fix issue with not refreshing keylines
PiperOrigin-RevId: 547956870
2023-07-17 15:58:09 +00:00
ekager
3b0fd5868e [ProgressIndicator] Closes #2361 - Allows extending LinearProgressIndicator and CircularProgressIndicator
Resolves https://github.com/material-components/material-components-android/pull/3416

GIT_ORIGIN_REV_ID=7e3b997ae796d047c7c0f381af51397f5c29a1f8
PiperOrigin-RevId: 547902662
2023-07-17 15:57:39 +00:00
pekingme
2b476b3a96 [TopAppBar] Updated the handling of liftOnScrollColor not override android:background.
PiperOrigin-RevId: 547883467
2023-07-17 15:56:54 +00:00
Material Design Team
1d3b8e136d [M3][Color] Updated contrast documentation
PiperOrigin-RevId: 547823926
2023-07-17 15:56:24 +00:00
Material Design Team
0d80c04bff [M3][Color] Internal color library update
PiperOrigin-RevId: 547561948
2023-07-17 15:55:39 +00:00
Alexander Martinz
fde37cfba5 [M3][Color] Add shift to dynamic colors allowlist
Resolves https://github.com/material-components/material-components-android/pull/3376

GIT_ORIGIN_REV_ID=80ef9b25f8fa3d2a3c62ff85d4a5d4ee063f3d13
PiperOrigin-RevId: 547287777
2023-07-17 15:55:00 +00:00
hunterstich
64b066a0c4 Automated g4 rollback of changelist 546859519
PiperOrigin-RevId: 547258405
2023-07-11 19:39:14 +00:00
hunterstich
14023d2c85 [Carousel] Fixed MaskableFrameLayout not updating mask after size change when setting the mask using setMaskXPercentage.
This also fixes the default list catalog demo not displaying any items due to every item's mask having an empty maskRect.

Resolves https://github.com/material-components/material-components-android/pull/3450

PiperOrigin-RevId: 546859519
2023-07-11 19:38:42 +00:00
Material Design Team
839b14cf0f [M3][Color] Expose attr contrastColorThemeOverlay
PiperOrigin-RevId: 546792664
2023-07-11 19:38:11 +00:00
rightnao
e3b255b3a0 [Docs] Crosslink github docs in javadocs
PiperOrigin-RevId: 546393704
2023-07-11 19:37:37 +00:00
rightnao
7c40359d2b [Carousel][Docs] Adding docs for fullscreen carousel strategy
PiperOrigin-RevId: 546350583
2023-07-11 19:37:01 +00:00
raajkumars
c15a323140 [SearchBar] Added support to set a default content description if a content description is not set explicitly.
PiperOrigin-RevId: 546349642
2023-07-11 19:35:33 +00:00
afohrman
d440e3c4f8 [Side Sheet][Docs] Add left sheet/sheet edge documentation.
PiperOrigin-RevId: 546308773
2023-07-07 17:58:23 +00:00
dependabot[bot]
b0a1c0bd60 [Internal][Gradle] (deps): Bump com.google.guava:guava from 32.0.0-android to 32.1.1-android in /catalog
Resolves https://github.com/material-components/material-components-android/pull/3464

GIT_ORIGIN_REV_ID=87b3b5b24061fd0775e6d66a5e40194d31fbe881
PiperOrigin-RevId: 546091110
2023-07-07 17:57:23 +00:00
u00d6zg\u00fcr G\u00f6rg\u00fcl\u00fc
f91f17bb4f [SideSheet][Docs] Fix mixed language snippet
Resolves https://github.com/material-components/material-components-android/pull/3466

GIT_ORIGIN_REV_ID=dc138fe98bb821da0cdbeba2c33cf95e6e775a61
PiperOrigin-RevId: 546088458
2023-07-07 17:56:25 +00:00
Material Design Team
57b26639d8 [Bugfix] Consistently use window coordinates to calculate Snackbar offsets. In one place screen and window coordinates are mixed, which leads to bad behavior in split screen apps.
PiperOrigin-RevId: 546057340
2023-07-07 17:55:24 +00:00
Bowei Ren
7289aa681d [Chip] Fix a typo in attributes table in documentation
Resolves https://github.com/material-components/material-components-android/pull/3457

GIT_ORIGIN_REV_ID=49abeeafcc26b4ac79032da56ec071fd30ee16ea
PiperOrigin-RevId: 546048151
2023-07-07 17:52:22 +00:00
rightnao
1785bbfabe [Docs] Cross-reference m.io and DAC in Github docs
PiperOrigin-RevId: 546035020
2023-07-07 17:50:11 +00:00
rightnao
9f2e6864d2 [NavigationBar] Set badges to be null instead of removing them from the sparse array so that removing badges before restoring badge states will not override the current state
PiperOrigin-RevId: 546027617
2023-07-07 17:49:34 +00:00
dependabot[bot]
0fb766e7e3 [Internal][Gradle] (deps): Bump com.google.dagger:dagger-android-support from 2.46 to 2.46.1 in /catalog
Resolves https://github.com/material-components/material-components-android/pull/3465

GIT_ORIGIN_REV_ID=068951a74f5a3929253d09634082dc3b8c50c5f0
PiperOrigin-RevId: 545993687
2023-07-07 17:48:58 +00:00
raajkumars
76a681abf6 [Material Android] 1.11.0-alpha01 Release.
PiperOrigin-RevId: 545708588
1.11.0-alpha01
2023-07-05 17:17:51 +00:00
Material Design Team
862a7e10c9 [M3][Color] Add dynamic contrast support
PiperOrigin-RevId: 544727089
2023-07-05 13:40:51 +00:00
rightnao
ad6afbf6d8 [Carousel][Catalog] Add fullscreen demo to catalog
PiperOrigin-RevId: 544700979
2023-07-05 13:40:20 +00:00