conradchen
c9e855e7d9
[Catalog][BottomSheet] Disable drag handle when restricting expansion
...
PiperOrigin-RevId: 462453123
2022-07-22 15:24:10 +00:00
pekingme
676a6585eb
[Catalog] Updated color in Crane, Fortnightly, and Shrine with the colors generated from custom theme builder.
...
PiperOrigin-RevId: 461987106
2022-07-20 21:48:01 +00:00
pekingme
fd3adc6fc7
[Catalog] Fixed corner family options in preference.
...
After migrating to Material 3 shape theming, the corner family options in the catalog preference are broken. The fix leverages the new theme attribute shapeCornerFamily to set corner family in all shape appearance styles.
PiperOrigin-RevId: 461984493
2022-07-20 21:47:32 +00:00
afohrman
98ce465aef
[Catalog] Moved edge to edge mode from the app header to CatalogPreferencesDialogFragment.
...
PiperOrigin-RevId: 461971938
2022-07-20 21:46:31 +00:00
dsn5ft
15196f5a56
[Catalog] Add ability to favorite a specific demo fragment/activity to launch on start
...
Heart icons are available in each demo row on the demo landing pages. Selecting one will make that demo launch immediately when opening the Catalog from a cold start. In order to make sure the back stack is correct when a specific demo is favorited, on launch the DemoLandingFragment for the favorited demo will be started first, and then the favorited demo will be started on top of that.
PiperOrigin-RevId: 461619522
2022-07-19 18:41:47 +00:00
leticiars
6eeb95f971
[Divider] Fixed lastItemDecorated not being applied to horizontal orientation. Also updated the demo to include both orientations.
...
Resolves https://github.com/material-components/material-components-android/issues/2802
PiperOrigin-RevId: 461247080
2022-07-19 18:40:54 +00:00
conradchen
f89a91f534
[BottomSheet] Add drag handle to scrollable demo
...
PiperOrigin-RevId: 460788173
2022-07-14 18:03:06 +00:00
Material Design Team
201b4a0944
[Material] Update guidelines for CollapsingToolbar + PreferenceFragmentCompat
...
It previously recommended creating a PreferencFragmentCompat inside a NestedScrollView, which will make the RecyclerView fully inflate all element, causing a UI jank. See more in https://momen-zaq.medium.com/recyclerview-with-nestedscrollview-best-practices-and-how-to-avoid-it-152fd9ce46d9
PiperOrigin-RevId: 460482020
2022-07-12 10:53:02 -07:00
hunterstich
4e52469ec4
[TopAppBar] Add status bar foreground to compress catalog demo.
...
PiperOrigin-RevId: 459313548
2022-07-06 13:17:58 -07:00
pubiqq
51c59faf71
[Catalog] Small fixes
...
Resolves https://github.com/material-components/material-components-android/pull/2751
GIT_ORIGIN_REV_ID=fbae7afaa081033f02e3ce1fbd82e52e28274c4c
PiperOrigin-RevId: 459277358
2022-07-06 13:15:06 -07:00
raajkumars
273554f5f4
[Catalog] Updated Buttons Demo to showcase toggleable icon only buttons.
...
PiperOrigin-RevId: 458479566
2022-07-06 05:01:34 -07:00
conradchen
ac7b761294
[BottomSheet] Create a drag handle view which support accessibility control
...
PiperOrigin-RevId: 457939228
2022-06-29 14:38:43 +00:00
rightnao
397e48f279
[BottomAppBar] Add menu alignment attribute
...
PiperOrigin-RevId: 456848323
2022-06-24 20:23:47 +00:00
pekingme
2fc2e6a167
[Tab] Fixed indicator not updating when a tab to the start/left of the selected tab is removed.
...
PiperOrigin-RevId: 456322731
2022-06-23 18:34:24 +00:00
rightnao
cab45dd1df
[BottomAppBar] Add new anchor mode attribute for FAB that has an embedded option
...
PiperOrigin-RevId: 455660518
2022-06-23 18:33:35 +00:00
leticiars
0cb355b26a
[Checkbox][Catalog] Updated checkbox catalog demo to include error state.
...
PiperOrigin-RevId: 455130475
2022-06-23 18:31:31 +00:00
pekingme
ab04c9c64a
[FAB] Combined Small, Regular, and Large styles in one catalog fragment.
...
Cleaned up unused string res.
PiperOrigin-RevId: 453304787
2022-06-06 22:03:05 -07:00
conradchen
93e53d0cc9
[Catalog][Switch] Migrate M3 catalog to use the new Switch design
...
PiperOrigin-RevId: 451425626
2022-05-31 13:33:33 -07:00
conradchen
109748e995
[Catalog][BottomSheet] Fix full-screen dialog layout after restrict expansion is enabled once
...
In the original implementation, we wrongly applied layout height on the bottom sheet dialog root view, instead of its content, which makes full-screen dialog broken since it's setting layout height to the content instead. Refactors the logic so the layout height will always be set to the content, instead of the root view.
PiperOrigin-RevId: 450932326
2022-05-25 15:19:01 -04:00
dsn5ft
265cb867cd
[Catalog] Surround TransitionFragment platform demos with proper sdk int check to fix lint error
...
PiperOrigin-RevId: 449045527
2022-05-16 16:54:09 -04:00
Material Design Team
65e75062f2
[M3][Color] Refactored ColorHarmonizationDemoFragment to DemoActivity
...
PiperOrigin-RevId: 448907753
2022-05-16 15:09:14 -04:00
manabu-nakamura
d25d18d462
[Catalog][Bottom App Bar] Apply M3 style to bottom sheet in bottom app bar demo.
...
Resolves https://github.com/material-components/material-components-android/pull/2692
Resolves https://github.com/material-components/material-components-android/issues/1700
GIT_ORIGIN_REV_ID=8d6d3a475eae177723fc44347e2fe97b74d419ba
PiperOrigin-RevId: 448328671
2022-05-12 17:23:59 -04:00
raajkumars
467a2c9f73
[Button] Updated M3 button style to add outlined icon button style. Updated catalog to showcase the same.
...
PiperOrigin-RevId: 448118229
2022-05-12 17:17:21 -04:00
leticiars
3e6329bd9d
[i18n][Catalog] Revert removal of @android:string/* on Menu catalog demo since we don't export translations for our catalog, so it's best to leave them as is.
...
PiperOrigin-RevId: 447979290
2022-05-11 09:44:15 -04:00
pubiqq
40ce41c495
[i18n][Catalog] Use regular strings on Menu catalog demo instead of @android:string/* which can have translation issues
...
Resolves https://github.com/material-components/material-components-android/pull/2685
GIT_ORIGIN_REV_ID=be90b301e016031bc19856aaadfbecc40f2eb551
PiperOrigin-RevId: 447821912
2022-05-11 09:43:25 -04:00
raajkumars
14578ed68c
[Button] Updated M3 button style to add filled tonal icon button style. Updated catalog to showcase the same.
...
PiperOrigin-RevId: 447784383
2022-05-10 15:05:30 -04:00
raajkumars
25606cf34a
[Button] Updated M3 button style to add filled icon button style. Updated catalog to showcase the same.
...
PiperOrigin-RevId: 447523530
2022-05-09 15:00:34 -04:00
Material Design Team
dfd8dbaf3a
[M3][Color] Refactored PreferencesActivity to allow configurations on any activity-level preferences/options
...
PiperOrigin-RevId: 447470760
2022-05-09 14:59:40 -04:00
pubiqq
5549e53ded
[Catalog] Fix DateValidatorWeekdays description
...
Resolves https://github.com/material-components/material-components-android/pull/2681
GIT_ORIGIN_REV_ID=07d1dd43d4ed84699f6c72fa04efcb2ec6982607
PiperOrigin-RevId: 446235711
2022-05-03 15:05:02 -04:00
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