698 Commits

Author SHA1 Message Date
raajkumars
030fe32445 [Catalog] Added Search Demo .
PiperOrigin-RevId: 490241875
2022-11-22 12:31:27 -05:00
hunterstich
45a569f858 [Catalog] Add themed icon
PiperOrigin-RevId: 486702225
2022-11-09 22:13:56 +00:00
pfthomas
2f9844b34a [MaterialDatePicker][a11y] Announce start/end dates
PiperOrigin-RevId: 481152229
2022-10-17 20:00:14 +00:00
Blue
e8bfad5644 [MaterialButtonToggleGroup] handle setEnable childs
Resolves https://github.com/material-components/material-components-android/pull/2974
Resolves https://github.com/material-components/material-components-android/issues/2962
Resolves https://github.com/material-components/material-components-android/issues/1813

GIT_ORIGIN_REV_ID=e8f6b7cb1ca143f0ed1e2ec8d501164568dac2d9
PiperOrigin-RevId: 479403809
2022-10-11 14:00:17 +00:00
pfthomas
be8b8d44de [MaterialDatePicker][a11y] Announce selection
PiperOrigin-RevId: 478026835
2022-10-03 19:13:28 +00:00
pekingme
4c11606122 [Catalog][BottomAppBar] Added the handle to the bottom sheet.
Resolves https://github.com/material-components/material-components-android/pull/2970

PiperOrigin-RevId: 475878478
2022-09-22 17:37:28 +00:00
pfthomas
7bc5689789 [MaterialDatePicker] Add method to specify a content description to decorated views
PiperOrigin-RevId: 474622363
2022-09-16 13:56:02 -04:00
pubiqq
09f1ee5644 [Catalog][TimePicker] Add input mode selector
Resolves https://github.com/material-components/material-components-android/pull/2902

GIT_ORIGIN_REV_ID=3d62554886116fba051d8030a731678f3d181d30
Co-authored-by: paulfthomas
PiperOrigin-RevId: 474614468
2022-09-16 13:53:10 -04:00
pfthomas
ceacaa699a [BottomAppBar][Catalog][a11y] Improve focus handling
PiperOrigin-RevId: 471932710
2022-09-08 10:18:28 -04:00
pfthomas
54b0d7d480 Automated g4 rollback of changelist 470727992
PiperOrigin-RevId: 471050462
2022-08-31 15:54:17 -07:00
KyungEun No
5c2eb45fd9 [Catalog] Fix navigation bar overlaps ui #2927
Resolves https://github.com/material-components/material-components-android/pull/2930

GIT_ORIGIN_REV_ID=643e5139f53d49d4b5fb1c6d85146400aa10be24
PiperOrigin-RevId: 470795174
2022-08-30 11:26:49 -04:00
pfthomas
968e035e83 [BottomAppBar][Catalog][a11y] Request focus on search menu when showing
PiperOrigin-RevId: 470727992
2022-08-29 10:40:55 -07:00
dsn5ft
be650c4f57 [MaterialDatePicker] Add initialize() method to DayViewDecorator to better support configuration changes
Fixes an issue where compound drawables using resource qualifiers like -land will have the wrong value on rotation

PiperOrigin-RevId: 466776776
2022-08-11 12:52:12 -04:00
conradchen
3d32f73f4d [Catalog] Replace android.support dependencies with androidx
Resolves https://github.com/material-components/material-components-android/pull/2898

PiperOrigin-RevId: 466061753
2022-08-08 12:23:55 -04:00
dsn5ft
c19efa03e5 [Catalog] Update date picker demo text appearances to M3
PiperOrigin-RevId: 466034718
2022-08-08 11:19:56 -04:00
raajkumars
2697e0f699 [Catalog]Updated button demo to provide the correct content description for icon only buttons.
PiperOrigin-RevId: 466034708
2022-08-08 11:08:01 -04:00
afohrman
549fe19134 [Catalog] Added search/filter functionality to MDC Catalog.
This speeds up our development process and enhances the user experience of our catalog.

Also added a bottom line to the last row of boxes in the table of contents grid in order to avoid this visual breakage when the grid does not fill up the screen: screenm/9V8HPkufqM9BkVc.png. Previously, GridDividerDecoration avoided drawing the bottom line of the grid in the last row of the grid, but now that there can be less boxes than the screen size it's important to handle that case.

PiperOrigin-RevId: 465643774
2022-08-08 11:03:52 -04:00
leticiars
8f149b10dc [Checkbox] Added indeterminate state support to the checkbox.
A MaterialCheckBox can now be checked, unchecked, or indeterminate.

Resolves https://github.com/material-components/material-components-android/issues/857

PiperOrigin-RevId: 465598224
2022-08-08 10:58:39 -04:00
dsn5ft
debe22e397 [MaterialDatePicker] Refactor header styling to allow for multiline title with description text
PiperOrigin-RevId: 465538100
2022-08-05 20:02:57 +00:00
pubiqq
745acfdfc7 [Catalog] Fix the favorite icon vertical alignment on demo landing rows
Resolves https://github.com/material-components/material-components-android/pull/2850

GIT_ORIGIN_REV_ID=9b5bfc62a33073e3e13ebd13586fea933f92299f
PiperOrigin-RevId: 465403035
2022-08-05 19:56:56 +00:00
rightnao
8bec1675e6 [BottomAppBar] Updating catalog to remove M2 options
PiperOrigin-RevId: 465353345
2022-08-04 14:50:02 -04:00
dsn5ft
24201b4246 [MaterialDatePicker] Add ability to customize background color to DayViewDecorator
Resolves https://github.com/material-components/material-components-android/issues/2881

PiperOrigin-RevId: 464841873
2022-08-04 14:32:40 -04:00
rightnao
63f98bf5f9 [BottomAppBar] Small bugs and padding adjustments
resolves https://github.com/material-components/material-components-android/issues/2879

PiperOrigin-RevId: 464840315
2022-08-04 14:31:53 -04:00
dsn5ft
229eb9d64f [Catalog] Update Catalog preferences demo to use MaterialSwitch
Related to https://github.com/material-components/material-components-android/issues/2828

PiperOrigin-RevId: 464830220
2022-08-04 14:31:14 -04:00
leticiars
849be73edb [Catalog] Fix favorite row button alignment in lower apis.
PiperOrigin-RevId: 463871651
2022-07-28 17:45:24 -04:00
dsn5ft
bca0f2ea8e [MaterialDatePicker] Add support for decorating day views and a demo for circle indicators
Resolves https://github.com/material-components/material-components-android/issues/2854

PiperOrigin-RevId: 463608089
2022-07-28 17:39:54 -04:00
pekingme
3daa028e42 [Catalog] Updated catalog preferences for shape corner sizes.
PiperOrigin-RevId: 463151256
2022-07-28 17:34:51 -04:00
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