828 Commits

Author SHA1 Message Date
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
pekingme
fb4761cc20 [ButtonToggleGroup] Added APIs to customize inside spacing and corner size between buttons.
PiperOrigin-RevId: 628469557
2024-04-29 19:03:54 +00:00
manabu-nakamura
c600b385c1 [Catalog][Carousel] Fix slider value out of bounds crash in carousel demos caused by state restore happening after resetting slider values
Resolves https://github.com/material-components/material-components-android/pull/4037

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

GIT_ORIGIN_REV_ID=b41cac6c34c66ffccdb6a7696cd554e620b2e0bc
Co-authored-by: imhappi
PiperOrigin-RevId: 625484603
2024-04-17 18:05:46 +00:00
rightnao
9393b9779e [Carousel] Support unclipped padding for uncontained variant of carousel
PiperOrigin-RevId: 625101250
2024-04-16 17:52:05 +00:00
pekingme
0849c147e1 [ProgressIndicator] Added demos for wave effects with wave speed.
PiperOrigin-RevId: 621630725
2024-04-03 21:14:25 +00:00
pekingme
b32512a3c8 [ProgressIndicator] Added demos for wave effects.
PiperOrigin-RevId: 620297129
2024-04-02 14:57:29 +00:00
pekingme
b61ab854db [ProgressIndicator] Refactored the catalogs for more demos in future.
PiperOrigin-RevId: 620287681
2024-04-02 14:56:53 +00:00
pekingme
747fe8cdb9 [ProgressIndicator] Updated outdated string description in the catalog.
PiperOrigin-RevId: 619605553
2024-03-28 19:50:18 +00:00
hunterstich
17855c116b [TopAppBar] Fixed compress effect when toolbar is set as a support action bar and hiddin/shown.
getSupportActionBar.show/hide uses visibility to show/hide the toolbar which conflicted with the compress effect's use of Visibility to remove the toolbar when completely masked. This updates the compress effect to use alpha instead of visibility.

PiperOrigin-RevId: 619253990
2024-03-26 21:39:03 +00:00
pekingme
a2d9bac55f [Catalog] Removed translatable="false" for all strings with descriptions.
PiperOrigin-RevId: 619251765
2024-03-26 21:38:20 +00:00
pfthomas
5bf6831b14 [NavDrawer][a11y] Fix wrong item selected after click
PiperOrigin-RevId: 616214272
2024-03-20 18:47:11 +00:00
dsn5ft
22de817c30 [Docs] Internal change
PiperOrigin-RevId: 613673995
2024-03-07 20:52:14 +00:00
pekingme
46fa6465fe [Cleanup] Internal change
PiperOrigin-RevId: 608668937
2024-02-29 08:27:55 -08:00
Material Design Team
5471b8d37a Internal change
PiperOrigin-RevId: 607976596
2024-02-26 13:44:54 -08:00
pekingme
56880276e4 [ProgressIndicator] Main demo cleanup.
PiperOrigin-RevId: 602509141
2024-01-30 19:45:52 +00:00
afohrman
5557ec3b74 [Predictive Transitions] Add predictive fade through fragment transition demo to Catalog.
PiperOrigin-RevId: 602495276
2024-01-30 19:37:54 +00:00
afohrman
55fc6e3338 [Predictive Transitions] Add titles to fade through demo fragments in Catalog.
This adds more differentiation between fragments which will help showcase the fade through predictive transition between fragments

PiperOrigin-RevId: 601579850
2024-01-26 21:27:17 +00:00
pfthomas
b84e6549d4 [NTC][ProgressIndicator] Internal changes
PiperOrigin-RevId: 595708057
2024-01-04 19:23:44 +00:00
pekingme
701d5c2627 [ProgressIndicator] Removed old demos.
PiperOrigin-RevId: 592321521
2023-12-21 16:37:41 +00:00
pekingme
cd0d94eb09 [ProgressIndicator] Added a demo for using multiple indicator colors in Catalog.
PiperOrigin-RevId: 592009245
2023-12-19 12:19:31 -08:00
pekingme
5d62e9ed55 [ProgressIndicator] Added demo for visibility control.
PiperOrigin-RevId: 592008983
2023-12-19 12:18:49 -08:00
pekingme
ba0b332742 [ProgressIndicator] Updated main demo in Catalog.
PiperOrigin-RevId: 592008643
2023-12-19 12:18:08 -08:00
hunterstich
d9796eb926 [Build] Fixed lint errors
PiperOrigin-RevId: 591939653
2023-12-19 12:16:45 -08:00
dsn5ft
c69580296e [Catalog] Fix flickering AppBarLayout in Navigation Rail demo
Resolves https://github.com/material-components/material-components-android/issues/3925

PiperOrigin-RevId: 591264750
2023-12-15 20:42:41 +00:00
dsn5ft
90d6583577 [Search] Update demos and doc to use AppBarLayout app:statusBarForeground in order to avoid overlap between SearchBar and status bar content
Resolves https://github.com/material-components/material-components-android/issues/3103
Resolves https://github.com/material-components/material-components-android/issues/3358
Resolves https://github.com/material-components/material-components-android/pull/3914
Resolves https://github.com/material-components/material-components-android/pull/3875

PiperOrigin-RevId: 590953070
2023-12-14 18:21:06 +00:00
manabu-nakamura
392acf98c3 [Catalog][Search] search bar scrolls away with content
Resolves https://github.com/material-components/material-components-android/pull/3875

This is one step towards resolving https://github.com/material-components/material-components-android/issues/3103. There's still a thin grey line from the search bar underneath the status bar when it scrolls up, but it's a big improvement from before, where the search bar entirely overlapped with the status bar when scrolling.

GIT_ORIGIN_REV_ID=c65c225a1f66db798084d753fc497a1865cafe7a
PiperOrigin-RevId: 588797889
2023-12-07 19:45:22 +00:00
pfthomas
95e1c441c2 [NTC][Slider] Internal changes
PiperOrigin-RevId: 587826282
2023-12-05 16:14:39 +00:00
afohrman
8ccec334bd [Predictive Transitions] Added predictive transition support for fragments and views to the Material motion library, and enabled it in shared axis fragment transition demo.
This allows all MaterialVisibility transitions to be predictive, although each individual transition must be opted-in in order to be predictive/seekable.

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

PiperOrigin-RevId: 587108521
2023-12-04 15:44:19 +00:00
manabu-nakamura
54d2c8b87f [Catalog][Carousel] Fix issue with locked orientation with fullscreen carousel
Resolves https://github.com/material-components/material-components-android/pull/3835
Resolves https://github.com/material-components/material-components-android/issues/3834

GIT_ORIGIN_REV_ID=da20780aaf0dcd4ca6abb6cf2dc7107342c2eb53
PiperOrigin-RevId: 582497746
2023-11-15 16:16:10 +00:00
rightnao
d033733568 [Catalog] Fix top app bar in demos using activities
Resolves https://github.com/material-components/material-components-android/issues/3663

PiperOrigin-RevId: 582023670
2023-11-13 20:56:54 +00:00
rightnao
22aadb7ca9 [Catalog] Fix issue with top app bar not lifting in catalog demo fragments
PiperOrigin-RevId: 582013479
2023-11-13 19:47:10 +00:00
Material Design Team
8ca016fb01 [M3][Catalog] Update Shape Theming bottom sheet text color
PiperOrigin-RevId: 575005367
2023-10-23 10:19:34 -07:00
manabu-nakamura
2c539524ec [Catalog][BottomSheet] Use BottomSheetDialogFragment
Resolves https://github.com/material-components/material-components-android/pull/3601
Resolves https://github.com/material-components/material-components-android/issues/3600

GIT_ORIGIN_REV_ID=2c857675e53ee226eb46e6fcb5a77c68bb5ea4cc
PiperOrigin-RevId: 573848332
2023-10-17 10:56:12 -07:00
manabu-nakamura
74ac87cb61 [Catalog][Navigation Drawer] Update navigation drawer state handling to be more accurate in demo
Resolves https://github.com/material-components/material-components-android/pull/3611
Resolves https://github.com/material-components/material-components-android/issues/3610

GIT_ORIGIN_REV_ID=23a4655b1b4689f4b8fb233460822cd3b7c09675
PiperOrigin-RevId: 572943834
2023-10-12 11:06:05 -07:00
hunterstich
a00ee50907 [DatePicker] Added builder methods for customizing the positive and negative button content descriptions
Resolves https://github.com/material-components/material-components-android/issues/3595

PiperOrigin-RevId: 572929926
2023-10-12 11:05:22 -07:00
rightnao
ed4647d5df [Carousel] Cleaning up multi-browse strategy and removing compact arrangement
PiperOrigin-RevId: 572006115
2023-10-10 10:43:37 -07:00
dsn5ft
094e3e21ea [CollapsingToolbarLayout] Fix issue where expanded text gets ellipsized too aggressively when using title fade mode and the toolbar has menu items
PiperOrigin-RevId: 569287167
2023-10-02 13:39:52 +00:00
manabu-nakamura
1252d4f263 [Catalog][Predictive Back][Navigation Drawer] Update navigation drawer state handling to be more accurate in custom drawer demo
Partially addresses https://github.com/material-components/material-components-android/issues/3593
Resolves https://github.com/material-components/material-components-android/pull/3596

GIT_ORIGIN_REV_ID=9ca19b41473caa9bb303c7ac1ed2c5191cb4b081
PiperOrigin-RevId: 569180296
2023-10-02 13:37:31 +00:00
manabu-nakamura
98439df4fb [Catalog] When bottom sheet is collapsed, back callback is enabled
Resolves https://github.com/material-components/material-components-android/pull/3592
Resolves https://github.com/material-components/material-components-android/issues/3573

GIT_ORIGIN_REV_ID=39e07227cdb20fcb1c31850c4d4aff40e7b65441
PiperOrigin-RevId: 568545360
2023-09-26 17:38:35 +00:00
dsn5ft
357cf2d9ca [Catalog][Predictive Back][Side Sheet] Update side sheet state handling to be more accurate in demos
Fixes inaccurate state label text and back callback enabled flag after rotation

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

PiperOrigin-RevId: 566433974
2023-09-19 20:27:17 +00:00
dsn5ft
f9102c745a [Catalog][Predictive Back][Bottom Sheet] Update bottom sheet state handling to be more accurate in demos
Fixes inaccurate state label text and back callback enabled flag after rotation

Resolves https://github.com/material-components/material-components-android/issues/3573
Resolves https://github.com/material-components/material-components-android/issues/3575
Resolves https://github.com/material-components/material-components-android/issues/3577

Resolves https://github.com/material-components/material-components-android/pull/3574
Resolves https://github.com/material-components/material-components-android/pull/3576
Resolves https://github.com/material-components/material-components-android/pull/3578

PiperOrigin-RevId: 566286622
2023-09-19 20:20:59 +00:00
hunterstich
d16f22341e [Transitions] Updated colors of container transform demo
PiperOrigin-RevId: 564383381
2023-09-12 10:48:00 -04:00
dsn5ft
569ddac527 [AppBarLayout] Fix dynamic status bar foreground lift on scroll color when using Tonal Surface Color
Resolves https://github.com/material-components/material-components-android/issues/3530

PiperOrigin-RevId: 564364138
2023-09-12 10:47:09 -04:00