870 Commits

Author SHA1 Message Date
pekingme
7f8d63bb80 [Button] Added sizes and shape support.
PiperOrigin-RevId: 695840723
2024-11-21 17:14:16 +00:00
afohrman
c0231d7d60 [FloatingToolbar] Add motion for horizontal and vertical configurations of the floating toolbar.
PiperOrigin-RevId: 695232457
2024-11-11 13:28:44 -08:00
afohrman
655dba1a48 [FloatingToolbar] Added vertical floating toolbar configuration.
PiperOrigin-RevId: 694362191
2024-11-11 13:27:11 -08:00
Material Design Team
9c1ae33fdb Automated g4 rollback of changelist 694223692
PiperOrigin-RevId: 694359774
2024-11-11 13:25:21 -08:00
afohrman
53efceb422 [FloatingToolbar] Renamed Floating App Bar catalog demos to Floating Toolbar.
PiperOrigin-RevId: 694273191
2024-11-11 13:18:53 -08:00
hunterstich
7f2b363d8b [BottomSheet] Made the drag handle clickable to cycle through bottom sheet states.
Clicking on the drag handle will now cycle through the available states as an accessible alternative to swiping.

PiperOrigin-RevId: 694223692
2024-11-11 13:17:40 -08:00
afohrman
72e61c948a [FloatingToolbar] Added new Floating Toolbar component with package and updated catalog demo.
PiperOrigin-RevId: 693561861
2024-11-11 10:13:42 -08:00
kendricku
43fa5b69cd [Button] Add additional demos to catalog.
PiperOrigin-RevId: 691833993
2024-11-05 12:16:07 -08:00
kendricku
3bb2df80f3 [Button] Migrate trailing icon related resources for SplitButton.
PiperOrigin-RevId: 691793018
2024-10-31 21:56:27 +00:00
kendricku
43a5dd3a97 [Button] Added a new component SplitButton.
PiperOrigin-RevId: 690729978
2024-10-31 21:39:39 +00:00
rightnao
d148048a00 [NavigationRail][a11y] Add a11y announcements for when nav rail is expanded or collapsed
PiperOrigin-RevId: 689858577
2024-10-25 18:54:49 +00:00
rightnao
08c23dc384 [NavigationRail] Navigation rail expansion
PiperOrigin-RevId: 689848271
2024-10-25 18:53:02 +00:00
pfthomas
2e95296eac [Slider] Add support for track icons
- added trackIconActive, trackIconActiveSize and trackIconActiveColor attrs
- added trackIconInactive, trackIconInactiveSize and trackIconInactiveColor attrs
- added tests and demos
- updated documentation

PiperOrigin-RevId: 689804000
2024-10-25 18:51:04 +00:00
pfthomas
7f4413dc4f [Slider] Make track corner size customizable
- add setTrackCornerSize/getTrackCornerSize to customize the track corners
- simplify track drawing logic for legacy Slider
- add demos

PiperOrigin-RevId: 688146199
2024-10-22 20:10:53 +00:00
rightnao
3eb9178aaa [Catalog] Fix issue with forcing orientation for portrait-only demos forcing orientation for all demos
PiperOrigin-RevId: 687440176
2024-10-22 20:08:03 +00:00
rightnao
f09c562eb5 [Docs][BottomSheet] Add more information to BottomSheetDialogFragment docs
PiperOrigin-RevId: 686706770
2024-10-17 16:56:06 +00:00
afohrman
541433b759 [Floating Toolbar] Add initial catalog demo for Floating Toolbar.
PiperOrigin-RevId: 686112314
2024-10-16 04:08:25 +00:00
rightnao
90ab51eb6d [Catalog] Fix issue with ListPopupWindow a11y
PiperOrigin-RevId: 683696939
2024-10-09 16:50:31 +00:00
rightnao
38124d1f5b [Catalog] Changed checkboxes in checkbox demo to be displayed vertically since there isn't enough horizontal space when font is large
PiperOrigin-RevId: 680664451
2024-10-01 19:10:12 +00:00
kendricku
ade1437cfd [Bottom Sheet] [Catalog] Add new non-expandable demo for debugging.
PiperOrigin-RevId: 679169657
2024-09-26 16:21:15 +00:00
dsn5ft
75c1d30c7d [Catalog] Remove horizontal padding from toolbar demo
PiperOrigin-RevId: 678374802
2024-09-25 14:33:24 +00:00
leticiars
43b0e46804 [Catalog][TopAppBar][a11y] Fix toolbar close button not having a content description
PiperOrigin-RevId: 678362412
2024-09-25 14:32:42 +00:00
pekingme
04435855ac [Slider] Fixed a scroll demo fragment to have more granular steps.
PiperOrigin-RevId: 677909855
2024-09-25 14:25:00 +00:00
pubiqq
b77824fcc7 [Internal] Remove pre-Lollipop resources
Resolves https://github.com/material-components/material-components-android/pull/4280

GIT_ORIGIN_REV_ID=88ee02b5c93b51a154503b7a1f1b85ddeea3cb57
PiperOrigin-RevId: 676472901
2024-09-20 19:49:20 +00:00
rightnao
cc09ce8d55 [NavigationRail] Add scrollingEnabled attribute and update NavigationRail to have unlimited items when expanded while keeping the limit of 7 items while collapsed, and add demo to catalog
PiperOrigin-RevId: 676208760
2024-09-20 19:42:33 +00:00
pekingme
d1647968b9 [ProgressIndicator] Added top and bottom paddings to ensure the focus indicator (green box with talkback) to draw properly in catalog.
PiperOrigin-RevId: 676047704
2024-09-19 20:28:28 +00:00
rightnao
81907eb5bb [Catalog] Fix issue with TextField demo getting cut off in horizontal orientation
PiperOrigin-RevId: 675628875
2024-09-19 19:42:51 +00:00
rightnao
07d2584c1e [Docs][RadioButton] Update docs to use M3 screenshots
Resolves https://github.com/material-components/material-components-android/issues/4282

PiperOrigin-RevId: 672724449
2024-09-11 15:03:13 +00:00
pubiqq
23aca03255 [Internal] Remove pre-Lollipop checks
Resolves https://github.com/material-components/material-components-android/pull/4266

GIT_ORIGIN_REV_ID=1de7808e66dd6666c893217c76c7499afe2df6a3
PiperOrigin-RevId: 669688797
2024-09-03 13:31:29 +00:00
pekingme
d408906efe [Button] Updated the icon in catalog and test to filled for non-toggle buttons.
PiperOrigin-RevId: 667721880
2024-08-27 16:01:59 +00:00
pekingme
2901dca95e [ButtonGroup] Added more variants in catalog.
PiperOrigin-RevId: 666940948
2024-08-27 15:25:39 +00:00
pekingme
29ce8d32c3 [ButtonGroup] Added a new component ButtonGroup.
PiperOrigin-RevId: 666359073
2024-08-22 19:05:09 +00:00
pekingme
1d4c076a0e [LoadingIndicator] Added a new component.
PiperOrigin-RevId: 663371718
2024-08-16 17:35:28 +00:00
hunterstich
64a455e4a2 [Typography] Update typography catalog demo
PiperOrigin-RevId: 663271084
2024-08-16 17:32:27 +00:00
pekingme
4efcf870ff [Button] Refactored the main demo.
PiperOrigin-RevId: 660428578
2024-08-12 12:15:54 -07:00
rightnao
f14b0c054c [Catalog][NavigationRail] Update guidance for Navigation Rail on compact screens.
PiperOrigin-RevId: 659584492
2024-08-07 05:11:57 +00:00
whitipet
c13fff78ae [ProgressIndicator] Fix corner radius calculation
Resolves https://github.com/material-components/material-components-android/pull/4181

GIT_ORIGIN_REV_ID=535a8646de1acb4f08ae6d067ac3e88a24be2fac
PiperOrigin-RevId: 653242470
2024-07-22 18:25:46 +00:00
pekingme
af95f452ed [ProgressIndicator] Added APIs to support different wavelength for determinate and indeterminate modes; and renamed confusing APIs.
PiperOrigin-RevId: 651565924
2024-07-22 18:23:15 +00:00
rightnao
5d85d6bd6f [Catalog] Add guidance to use Bottom Navigation Bar on compact screens for Navigation Rail
PiperOrigin-RevId: 651507172
2024-07-22 18:22:40 +00:00
hunterstich
a9debc7a26 [Typography] Add variable font support to TextAppearance
PiperOrigin-RevId: 650200668
2024-07-08 20:33:22 +00:00
pekingme
b345f37942 [FAB] Updated catalog content description.
PiperOrigin-RevId: 642735154
2024-06-12 22:11:32 +00:00
pekingme
fe8b022911 [Color] Added Material custom palettes to catalog.
PiperOrigin-RevId: 642730653
2024-06-12 22:08:14 +00:00
pekingme
63bb499f98 [ButtonToggleGroup] Renamed insideCorner to innerCorner.
PiperOrigin-RevId: 639864920
2024-06-05 18:30:46 +00:00
rightnao
4acd57092d [Catalog] Fix to edge to edge behaviour for catalog
PiperOrigin-RevId: 637973580
2024-06-05 18:23:23 +00:00
Material Design Team
e4f00fda11 Automated g4 rollback of changelist 637051547
PiperOrigin-RevId: 637099379
2024-05-28 16:59:17 +00:00
pekingme
384d58fb98 [Button] Added responsive touch (corner morph).
PiperOrigin-RevId: 637051547
2024-05-25 02:19:11 +00:00
pubiqq
510881a469 [Internal] Stop using deprecated androidx.core.view.* methods
Resolves https://github.com/material-components/material-components-android/pull/4117

GIT_ORIGIN_REV_ID=dd157e8360c2511810496693cec1616fce578655
PiperOrigin-RevId: 632284856
2024-05-13 17:37:38 +00:00
pfthomas
b301a586b5 [Catalog][a11y] Select text color based on optimal contrast against background
PiperOrigin-RevId: 632242630
2024-05-13 17:35:22 +00:00
Ga\u00ebtan Muller
b3fe6a7f61 [Cleanup] Remove redundant version checks for api <= 19.
Resolves https://github.com/material-components/material-components-android/pull/3849

GIT_ORIGIN_REV_ID=47bb2fcc8031740e5a7d4f741f1ada2af025e126
PiperOrigin-RevId: 632154861
2024-05-09 18:46:02 +00:00
pekingme
c4cf6b28e1 [ProgressIndicator] Added demos for wave effects with new indeterminate motion.
PiperOrigin-RevId: 629767094
2024-05-02 15:38:26 +00:00