642 Commits

Author SHA1 Message Date
Material Design Team
dc65df3ace [M3][Color] Updated color harmonization demo
PiperOrigin-RevId: 446199668
2022-05-03 12:55:28 -04:00
pubiqq
2fa78da1a2 [Catalog] Fix DatePicker when the "Last 2 weeks" option is selected
Resolves https://github.com/material-components/material-components-android/pull/2679

GIT_ORIGIN_REV_ID=f59ca7cb7d68e2762bf505e5dcffc84f4cf36bb8
PiperOrigin-RevId: 446198395
2022-05-03 12:54:40 -04:00
Material Design Team
03475874f7 [M3][Color] Added ColorGrid classes for color harmonization demo.
PiperOrigin-RevId: 445883341
2022-05-02 09:20:30 -04:00
raajkumars
83f7a7a0ab [Catalog] Fixed Button demo to use the correct style for Icon Only Button.
PiperOrigin-RevId: 445477876
2022-05-02 09:18:22 -04:00
hunterstich
f2f454ba8a [Motion] Update container transform to use new motion system.
PiperOrigin-RevId: 444848054
2022-04-27 10:12:54 -04:00
pubiqq
b2c3dd601f [Catalog] Fix the demo image of the DatePicker component
Resolves https://github.com/material-components/material-components-android/issues/2652
Resolves https://github.com/material-components/material-components-android/pull/2653

GIT_ORIGIN_REV_ID=27085a247bde2308e646d7d72d9fe198dfb05876
PiperOrigin-RevId: 444315477
2022-04-25 13:56:18 -04:00
pubiqq
db167635e4 [Catalog] Fix timeFormat toggle in TimePickerMainDemoFragment
Resolves https://github.com/material-components/material-components-android/pull/2640

GIT_ORIGIN_REV_ID=753e4d8a696593e93594643f6aea18f3ce6cab94
PiperOrigin-RevId: 442591442
2022-04-18 15:42:09 -04:00
Material Design Team
f43995f0dd [M3][Color] Refactored MaterialColorSpec to take @ColorRes or @ColorInt for the demo.
PiperOrigin-RevId: 441778151
2022-04-14 13:16:23 -04:00
pfthomas
a49fa6ab36 [Catalog][Cards] Make card selection accessible
PiperOrigin-RevId: 440123538
2022-04-08 10:39:15 -04:00
jeremymuhia
dbfcd35356 [Catalog][Slider] continuous slider demo should use a single switch
PiperOrigin-RevId: 439382639
2022-04-05 15:08:46 -04:00
jeremymuhia
315c496cf8 [Catalog][Slider] consolidate slider switches to a single switch
PiperOrigin-RevId: 435719291
2022-03-21 18:52:04 +00:00
Material Design Team
b70bbc2942 [M3][Color] Iteration on HarmonizedColors and DynamicColors feedback
Removed the Context/Application/Activity in the Builders class.
Updated docs accordingly and added examples explaining how harmonizing color attributes with theme overlay works.

PiperOrigin-RevId: 433769484
2022-03-10 20:04:09 +00:00
pekingme
ca8594d2d2 [Slider] Added LABEL_VISIBLE to label behavior and added a demo fragment in catalog.
Resolves https://github.com/material-components/material-components-android/issues/1316

PiperOrigin-RevId: 433570701
2022-03-09 22:14:31 +00:00
dsn5ft
ebfb3dbc6c [Catalog][TopAppBar] Fix status bar and action mode glitches in ActionBar demo
Resolves https://github.com/material-components/material-components-android/issues/2563

PiperOrigin-RevId: 433305811
2022-03-09 22:10:24 +00:00
conradchen
be6050a23c [DatePicker] Always go edge-to-edge in fullscreen mode
Resolves https://github.com/material-components/material-components-android/issues/1966

PiperOrigin-RevId: 432296692
2022-03-04 13:06:17 -05:00
jeremymuhia
52daa6f8a9 [Catalog][BottomAppBar] remove the overflow menu from the bottom app bar demo
PiperOrigin-RevId: 431749183
2022-03-02 14:17:47 -08:00
Material Design Team
d7a07ab944 [M3][Color] Enable Resources Harmonization with Material defaults in Catalog app.
PiperOrigin-RevId: 430775729
2022-02-25 03:54:56 -08:00
afohrman
0803a22e44 [Adaptive] [Canonical Layouts] Added hero element to small screen configurations.
The hero element was missing from compact width size screens in our single view hero canonical layout demo. This was WAI/following the mocks, but it turns out this was a "design bug" and the mocks were wrong. The demo is now updated to include the hero element as the point of focus.

Also updated the title text appearance and a whole bunch of margins that weren't to spec or could use improvement.

PiperOrigin-RevId: 429571537
2022-02-23 11:08:39 -08:00
dsn5ft
2ce5f3bcd7 [Catalog] Add Navigation Drawer demo
PiperOrigin-RevId: 429379636
2022-02-23 11:05:16 -08:00
afohrman
a032884b8c [Catalog Assets] Deleted expansion panel asset.
The asset had a typo in the name ("expension panel") and was unused for the 5 years since it was introduced. Since it's been so long without being implemented and we have no known plans to build expansion panels, it's probably best to just remove it.

PiperOrigin-RevId: 429192861
2022-02-18 15:43:06 +00:00
conradchen
85ed9938d7 [TextField] Provide set simple items API with default item layout for MaterialAutoCompleteTextView
Resolves https://github.com/material-components/material-components-android/issues/692

PiperOrigin-RevId: 428832331
2022-02-15 19:33:49 +00:00
serniebanders
6c1bdd7418 [M3][Catalog] Remove Nav Rail Fab elevation to remove shadow in catalog demo.
PiperOrigin-RevId: 427747007
2022-02-11 15:42:03 +00:00
pfthomas
8b9be721eb [Catalog] Update Fonts section title
PiperOrigin-RevId: 426407426
2022-02-04 13:45:52 -08:00
pfthomas
db3cd486c5 [Catalog][Typography] Update description style
PiperOrigin-RevId: 426404278
2022-02-04 13:44:53 -08:00
hunterstich
c66633b385 [NavigationRail] Added support for opting in/out of the NavigationRail automatically adding system top and bottom window insets.
PiperOrigin-RevId: 424424554
2022-01-27 09:51:41 -08:00
serniebanders
9a5ec35aaf [Catalog] Update catalog preferences menu to a nested scroll view.
This change allows all preference options to be accessible in landscape mode.

PiperOrigin-RevId: 423915710
2022-01-25 14:44:58 -05:00
dsn5ft
8f4837e059 [MaterialCheckBox] Horizontally center the checkbox button drawable if there is no text
PiperOrigin-RevId: 421304994
2022-01-12 11:30:33 -05:00
hunterstich
1beedec9f8 [TabLayout] Added tab demo for fade mode indicator animation.
PiperOrigin-RevId: 418019823
2021-12-23 14:22:57 -05:00
conradchen
5fac4fd735 [Catalog] Fix chip icon colors
It doesn't make sense to use pure black/white for the star icon's unchecked/checked states. Changes to use ?attr/colorControlNormal to support light/dark mode switching and chip icon tinting.

PiperOrigin-RevId: 416369553
2021-12-15 14:09:45 -05:00
pfthomas
3de28c900a [Catalog] Internal change
PiperOrigin-RevId: 415516070
2021-12-10 19:54:52 +00:00
Material Design Team
cfc00aa5a3 Update android core class definitions across material
PiperOrigin-RevId: 414839941
2021-12-08 14:56:25 +00:00
Material Design Team
a487c89185 Internal change
PiperOrigin-RevId: 412135443
2021-11-29 17:35:39 +00:00
Material Design Team
9d86d27388 Internal change
PiperOrigin-RevId: 411170890
2021-11-29 17:27:32 +00:00
afohrman
6517aa6a69 [Adaptive] Removed extra space between the list view container and the navigation bar.
There was an extra 12dp of margin above the navigation bar that was unnecessary.

PiperOrigin-RevId: 409214343
2021-11-16 12:31:11 -05:00
Material Design Team
f898ba84b6 [M3][Color] Added Color Scheme demo in Catalog.
PiperOrigin-RevId: 408896531
2021-11-10 16:46:01 -05:00
leticiars
a3b54406f5 [Catalog][TextInputLayout] Added update button to customizable text fields.
Also updated text to make things less confusing.

PiperOrigin-RevId: 407415749
2021-11-04 10:55:31 -04:00
Gabriele Mariotti
b2fbacecd4 [MaterialDatePicker] added methods to use custom text for positive and negative button
Resolves https://github.com/material-components/material-components-android/pull/1607

GIT_ORIGIN_REV_ID=75093200ddeae117ae57a3e89e28d109f520ec8d
PiperOrigin-RevId: 407376627
2021-11-04 10:53:04 -04:00
pfthomas
83edbc4c49 [M3][Catalog] Add example of Preferences screen with Top App Bar
PiperOrigin-RevId: 406825107
2021-11-01 19:29:48 +00:00
Material Design Team
b8084848a0 [M3][Color] Refactored and added the Dynamic Color Palette demo in Catalog.
PiperOrigin-RevId: 406168279
2021-10-28 18:52:59 +00:00
conradchen
abb9d5bf99 [M3][Chip] Update chip styles with spec
PiperOrigin-RevId: 404852054
2021-10-25 16:06:43 +00:00
jeremymuhia
7cc64fdd76 [Catalog][Textfield] add snackbars to toggles
PiperOrigin-RevId: 404588306
2021-10-20 19:21:22 +00:00
leticiars
3668ca7e54 [Catalog][Adaptive] Simplified getting the fold position for the Adaptive demos. Included considering whether there's a hinge for some cases.
PiperOrigin-RevId: 404027612
2021-10-18 15:33:17 -04:00
dsn5ft
79e6834c0c [Catalog][Adaptive] Fixed Activities in manifest for single module Gradle build
PiperOrigin-RevId: 400966130
2021-10-05 09:09:11 -04:00
leticiars
82ca11a86c [Catalog][Adaptive] Changed ListView adaptive demo to include fold position if needed.
PiperOrigin-RevId: 400281960
2021-10-05 08:43:40 -04:00
leticiars
a2815ae724 [Catalog][Adaptive] Implemented M3 Supporting Panel demo.
PiperOrigin-RevId: 400271124
2021-10-05 08:39:19 -04:00
leticiars
c64bb76222 [Catalog][Adaptive] Added adaptive canonical layout demos to catalog.
PiperOrigin-RevId: 399672106
2021-09-29 10:02:54 -04:00
conradchen
4931d9b89e [M3][Card] Update card dev doc with the new filled style and new assets
PiperOrigin-RevId: 399245794
2021-09-28 14:59:10 +00:00
conradchen
b40b782525 [M3][Card] Add filled card style to M3 themes
PiperOrigin-RevId: 398780149
2021-09-28 14:52:04 +00:00
Material Design Team
d0633c618d [M3][Color] Added Color Demo, including color harmonization.
PiperOrigin-RevId: 398720414
2021-09-24 17:54:26 +00:00
dsn5ft
574f83da18 [M3][Catalog] Fixed favorite demo button icon colors
PiperOrigin-RevId: 398487784
2021-09-23 19:40:33 +00:00