5346 Commits

Author SHA1 Message Date
manabu-nakamura
4e1b130cdf [Catalog][Carousel] Fixed demos in RTL
Resolves https://github.com/material-components/material-components-android/pull/3556

GIT_ORIGIN_REV_ID=c2fbf22cfe914840783f41145171defffe9ad738
PiperOrigin-RevId: 564361017
2023-09-12 10:45:07 -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
manabu-nakamura
79a19537d7 [Catalog] Make side sheet demo icon easier to see in dark mode
Resolves https://github.com/material-components/material-components-android/pull/3566
Resolves https://github.com/material-components/material-components-android/issues/3565

GIT_ORIGIN_REV_ID=5dcb14696ab6bbfd2d8a34927acb13a239598195
PiperOrigin-RevId: 563822545
2023-09-08 16:10:09 -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
dsn5ft
3bb69f501a [Gradle] Remove explicit Catalog dependency on androidx.activity now that library depends on it
PiperOrigin-RevId: 563453731
2023-09-07 15:05:23 -04:00
dsn5ft
f93c65c347 [Gradle] Update androidx.activity dependency to version 1.8.0-beta01
PiperOrigin-RevId: 563398540
2023-09-07 12:38:46 +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
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
484779902e [Catalog] buid.gradle update.
Resolves https://github.com/material-components/material-components-android/pull/3558
Resolves https://github.com/material-components/material-components-android/pull/3559
Resolves https://github.com/material-components/material-components-android/pull/3560

PiperOrigin-RevId: 563163777
2023-09-07 12:36:44 +00:00
rightnao
caec8d2849 [Docs][Carousel] Add guidance in fullscreen strategy docs about portrait orientation
PiperOrigin-RevId: 563087886
2023-09-06 10:55:32 -04: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
leticiars
c40e468820 [Catalog][TopAppBar] Remove edge-to-edge to top app bar demos due to glitches in ActionBar demo
Automated g4 rollback of changelist 560774617

PiperOrigin-RevId: 561719046
2023-08-31 15:10:18 -04:00
pekingme
4e995d1f81 [TopAppBar] Added liftOnScroll and lifted toggles to the catalog.
PiperOrigin-RevId: 561137677
2023-08-30 15:25:23 -04:00
manabu-nakamura
480bbc6a9b [Catalog][Carousel] Update slider position when carousel is scrolled in uncontained carousel demo
Resolves https://github.com/material-components/material-components-android/pull/3539

GIT_ORIGIN_REV_ID=c520f2f5fa88a9c08e65e9d3e34db075fdb938dd
PiperOrigin-RevId: 560815648
2023-08-29 15:19:03 -04:00
manabu-nakamura
aa5b5bc157 [Catalog][TopAppBar] Applied edge-to-edge to top app bar demos
Resolves https://github.com/material-components/material-components-android/pull/3548
Resolves https://github.com/material-components/material-components-android/issues/3547

GIT_ORIGIN_REV_ID=22425cde55ee6e99c2b679c9ecdca8bba745d4b9
PiperOrigin-RevId: 560774617
2023-08-28 14:56:53 -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
0582b1a094 [Docs][Chip] Update chip documentation to use setOnCheckedStateChangeListener instead of setOnCheckedChangeListener which was deprecated in favour of the former
Resolves https://github.com/material-components/material-components-android/issues/3536

PiperOrigin-RevId: 560125494
2023-08-25 19:22:38 +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
ef9f91864f [Catalog][Carousel] Add uncontained carousel demo to catalog
PiperOrigin-RevId: 559221323
2023-08-23 19:32:06 +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
manabu-nakamura
3652fde271 [Catalog][Carousel] Update slider position when carousel is scrolled in catalog demos
Resolves https://github.com/material-components/material-components-android/pull/3521
Resolves https://github.com/material-components/material-components-android/issues/3520

GIT_ORIGIN_REV_ID=f26a8b55c9026a3418024a2e51ba3570a017c59d
PiperOrigin-RevId: 558934224
2023-08-22 00:13:28 +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
rightnao
44bfe2ddb8 [Docs][Button] Update example in docs to use colorContainer and colorOnContainer instead of colorPrimary and colorOnPrimary.
Resolves https://github.com/material-components/material-components-android/issues/3526

PiperOrigin-RevId: 558196799
2023-08-18 22:34:29 +00:00
pekingme
9a4c21d77a [Doc] Updated Color dev doc with tonal surface colors.
PiperOrigin-RevId: 557630134
2023-08-17 22:28:22 +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
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