624 Commits

Author SHA1 Message Date
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
hunterstich
c6d0f7c785 [M3][NavigationRail] Added new navigation rail styles.
PiperOrigin-RevId: 397846116
2021-09-21 08:35:12 -07:00
conradchen
868f8aaba3 [Tab] Fix setting tab indicator and its full-width flag
1. When a new tab indicator drawable is set, we didn't correctly restore the previous set indicator height to the new drawable, or set the drawing bound to the intrinsic height of the drawable, if the indicator height was not specified. This result in a 0-height drawing bound after setting the tab indicator, which makes it disappear and can never go back if the tab indicator gravity is not "stretch" (which will recalculate the height after moving the indicator). Fixes this by correctly set the drawing bounds after a new tab indicator drawable is set.

2. After we set full-width flag of tab indicator, the width won't be updated until we move the tab indicator. Fixes this by explicitly triggering the recalculation of tab indicator's drawing bound after changing the flag.

Resolves: https://github.com/material-components/material-components-android/issues/2354
PiperOrigin-RevId: 397823617
2021-09-21 08:14:25 -07:00
leticiars
ed0567d26d [Catalog] Removed MaterialComponents references from musicplayer package.
PiperOrigin-RevId: 396367575
2021-09-16 09:56:45 -07:00
afohrman
f01e6a849d [M3][Dialog] Add M3 styles for Dialog.
PiperOrigin-RevId: 395775598
2021-09-15 12:31:13 -07:00
jeremymuhia
054f1dba1e [M3][FAB] add tertiary FAB color variant
PiperOrigin-RevId: 395721687
2021-09-15 12:22:52 -07:00
dsn5ft
9534612864 [M3][Catalog] Added compress effect Top App Bar demo
PiperOrigin-RevId: 395519586
2021-09-08 17:42:22 -04:00
dsn5ft
7463f9a294 [M3][Catalog] Added Medium and Large collapsing toolbar Top App Bar demos
PiperOrigin-RevId: 395508118
2021-09-08 17:41:35 -04:00
pekingme
5c2a5920d5 [M3][ProgressIndicator] Created progress indicator's M3 styles.
PiperOrigin-RevId: 394263058
2021-09-01 17:07:57 -04:00
conradchen
cdafe752e3 [M3][Bottomsheet] Create bottom sheet styles
PiperOrigin-RevId: 394258956
2021-09-01 17:07:04 -04:00
dsn5ft
e776908bd2 [M3][Catalog] Updated some demo references to Material3 styles
PiperOrigin-RevId: 394005182
2021-08-31 12:01:43 -04:00
serniebanders
492e37f46f [M3] Chip style updates
PiperOrigin-RevId: 393994946
2021-08-31 10:46:09 -04:00
leticiars
7abf166170 [Catalog] Adding android:exported to catalog main activity.
PiperOrigin-RevId: 393424488
2021-08-27 17:30:38 -04:00
pfthomas
0998e9d018 [M3][Menu] Create M3 styles
PiperOrigin-RevId: 393191642
2021-08-27 14:51:55 -04:00
serniebanders
7f597a711c [M3][Chip] Create M3 styles
PiperOrigin-RevId: 393154962
2021-08-26 15:10:34 -04:00
conradchen
fabb5ea498 [M3][Divider] Create M3 styles
PiperOrigin-RevId: 393151662
2021-08-26 15:09:37 -04:00
jeremymuhia
5e98a056c1 [M3][Catalog][FAB] update FAB demos
PiperOrigin-RevId: 393138444
2021-08-26 14:45:19 -04:00
conradchen
2901012af5 [M3][DatePicker] Create M3 styles
PiperOrigin-RevId: 392982386
2021-08-26 14:43:23 -04:00
leticiars
864ef024ab [Catalog] Music player demo updates.
PiperOrigin-RevId: 392884977
2021-08-25 14:58:02 -04:00