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
manabu-nakamura
4e1b130cdf
[Catalog][Carousel] Fixed demos in RTL
...
Resolves https://github.com/material-components/material-components-android/pull/3556
GIT_ORIGIN_REV_ID=c2fbf22cfe914840783f41145171defffe9ad738
PiperOrigin-RevId: 564361017
2023-09-12 10:45:07 -04:00
manabu-nakamura
79a19537d7
[Catalog] Make side sheet demo icon easier to see in dark mode
...
Resolves https://github.com/material-components/material-components-android/pull/3566
Resolves https://github.com/material-components/material-components-android/issues/3565
GIT_ORIGIN_REV_ID=5dcb14696ab6bbfd2d8a34927acb13a239598195
PiperOrigin-RevId: 563822545
2023-09-08 16:10:09 -04:00
leticiars
c40e468820
[Catalog][TopAppBar] Remove edge-to-edge to top app bar demos due to glitches in ActionBar demo
...
Automated g4 rollback of changelist 560774617
PiperOrigin-RevId: 561719046
2023-08-31 15:10:18 -04:00
pekingme
4e995d1f81
[TopAppBar] Added liftOnScroll and lifted toggles to the catalog.
...
PiperOrigin-RevId: 561137677
2023-08-30 15:25:23 -04:00
manabu-nakamura
480bbc6a9b
[Catalog][Carousel] Update slider position when carousel is scrolled in uncontained carousel demo
...
Resolves https://github.com/material-components/material-components-android/pull/3539
GIT_ORIGIN_REV_ID=c520f2f5fa88a9c08e65e9d3e34db075fdb938dd
PiperOrigin-RevId: 560815648
2023-08-29 15:19:03 -04:00
manabu-nakamura
aa5b5bc157
[Catalog][TopAppBar] Applied edge-to-edge to top app bar demos
...
Resolves https://github.com/material-components/material-components-android/pull/3548
Resolves https://github.com/material-components/material-components-android/issues/3547
GIT_ORIGIN_REV_ID=22425cde55ee6e99c2b679c9ecdca8bba745d4b9
PiperOrigin-RevId: 560774617
2023-08-28 14:56:53 -04:00
rightnao
3d84841cad
[Carousel][A11y] Fix some a11y bugs in Carousel
...
PiperOrigin-RevId: 559881261
2023-08-25 17:51:59 +00:00
pfthomas
5f1cab65b1
[MaterialDatePicker] Fix header layout overlapping
...
PiperOrigin-RevId: 559538381
2023-08-24 20:50:49 +00:00
rightnao
ef9f91864f
[Catalog][Carousel] Add uncontained carousel demo to catalog
...
PiperOrigin-RevId: 559221323
2023-08-23 19:32:06 +00:00
manabu-nakamura
3652fde271
[Catalog][Carousel] Update slider position when carousel is scrolled in catalog demos
...
Resolves https://github.com/material-components/material-components-android/pull/3521
Resolves https://github.com/material-components/material-components-android/issues/3520
GIT_ORIGIN_REV_ID=f26a8b55c9026a3418024a2e51ba3570a017c59d
PiperOrigin-RevId: 558934224
2023-08-22 00:13:28 +00:00
manabu-nakamura
6c2dd5d69e
[Catalog] Applied edge-to-edge to bottom sheet in Carousel demo
...
Resolves https://github.com/material-components/material-components-android/pull/3505
Resolves https://github.com/material-components/material-components-android/issues/3504
GIT_ORIGIN_REV_ID=7bdf0989eac11e9b496dd38e9e6fda8acae3b593
PiperOrigin-RevId: 555208372
2023-08-09 17:43:01 +00:00
rightnao
af7d09a43d
[Catalog] Fix fullscreen vertical carousel to use vertical dividers
...
resolves https://github.com/material-components/material-components-android/issues/3500
PiperOrigin-RevId: 554496440
2023-08-09 15:51:22 +00:00
rightnao
0171624c16
[Carousel][Catalog] Remove default list from Carousel catalog demos as it is not an example of a carousel
...
PiperOrigin-RevId: 551280479
2023-07-27 22:49:17 +00:00
pfthomas
db9a6412ec
[MaterialSwitch] Amendments to thumb icon size support
...
Resolves https://github.com/material-components/material-components-android/pull/3364
PiperOrigin-RevId: 549627031
2023-07-20 22:17:48 +00:00
rightnao
7cfd30f99b
[Catalog][Carousel] Add alignment option to hero carousel
...
PiperOrigin-RevId: 548725196
2023-07-18 16:51:24 +00:00
rightnao
ad6afbf6d8
[Carousel][Catalog] Add fullscreen demo to catalog
...
PiperOrigin-RevId: 544700979
2023-07-05 13:40:20 +00:00
rightnao
27abfdba4f
[Badge] Deprecate bottom badge gravities and update docs and usages in catalog
...
PiperOrigin-RevId: 543527285
2023-06-27 18:55:22 +00:00
afohrman
f2e70d2d66
[Android U] Replaced BuildCompat#isAtLeastU() method calls with explicit SDK checks for UPSIDE_DOWN_CAKE.
...
Before 1.12.0-alpha01 which was released on 6/7, BuildCompat#isAtLeastU() only returns true if API level is greater than 33 and the version running is a pre-release. Two things happened on 6/7 -- the version became a "platform stable" version, and core library version 1.12.0-alpha01 was released, which changes BuildCompat#isAtLeastU() to return true if the version is 34 and stable.
PiperOrigin-RevId: 540304068
2023-06-14 12:45:51 -07:00
hunterstich
a67a885668
[Predictive Back] Update components to use BackEventCompat
...
Clients should prefer listening to back events using androidx.activity.OnBackPressedCallback which has been updated to forward BackEventCompat objects in androidx.activity:activity:1.8.0-alpha05. This updates component predictive back APIs to take in BackEventCompat objects instead of android.window.BackEvent objects to simplify usage - getting rid of the need for version checks and object conversions.
PiperOrigin-RevId: 540290323
2023-06-14 12:44:53 -07:00
pfthomas
022e217770
[Navigation] Add itemTextAppearanceActiveBoldEnabled attr
...
Resolves https://github.com/material-components/material-components-android/issues/3191
Resolves https://github.com/material-components/material-components-android/issues/3293
PiperOrigin-RevId: 539977391
2023-06-14 15:14:24 +00:00
Material Design Team
2336c23fab
[Build] Update to compileSdkVersion 34 and update catalog to use androidx.activity:activity:1.8.0-alpha05
...
PiperOrigin-RevId: 539031943
2023-06-09 08:02:47 -07:00
afohrman
7a3f30b065
[Side Sheet] Aligned close affordance and title text along the baseline rather than the top.
...
The close affordance icon and title text were previously aligned by the top. Since the icon button has extra spacing from insets and padding, the Views appeared to be misaligned. Aligning along the baseline fixes the visual misalignment.
This change is in the catalog since the side sheet view is provided by the developer.
PiperOrigin-RevId: 538570382
2023-06-09 08:01:54 -07:00
afohrman
7ee0b72e8a
[Side Sheet] Mapped close affordance to ?attr/colorOnSurfaceVariant in catalog.
...
PiperOrigin-RevId: 538533345
2023-06-09 08:01:15 -07:00
Material Design Team
836c51e44a
[M3][Color] Fix harmonization demo bug
...
PiperOrigin-RevId: 538259732
2023-06-06 20:02:18 +00:00
afohrman
690cd5d695
[Side Sheet] Changed side sheet child containers in Catalog from LinearLayouts to FrameLayouts.
...
The LinearLayouts each contained only one child, so a FrameLayout is a better choice; more lightweight and slightly more performant. This is a visual no-op.
PiperOrigin-RevId: 532823326
2023-05-22 18:32:29 +00:00
afohrman
a0d4fa03ff
[Side Sheet] Changed side sheet title text appearance to Title Large.
...
This change is in the Catalog, since the developer is responsible for layout elements within the side sheet.
Also changed some other elements of the side sheet content layouts to balance out the visual look of the sheets.
PiperOrigin-RevId: 532788247
2023-05-22 18:31:42 +00:00
rightnao
b57dae57aa
[Carousel] Add Carousel Hero strategy demo
...
PiperOrigin-RevId: 531612383
2023-05-15 17:29:00 +00:00
rightnao
26c377962f
[Carousel][Catalog] Add option for snapping with multi-browse carousel demo
...
PiperOrigin-RevId: 529818471
2023-05-08 14:48:58 -04:00
afohrman
87a45a2a3d
[Side Sheet] Fixed modal sheet text field formatting bug in catalog.
...
Before this change, the modal sheet is initially expanded with a "%f" for the slide offset text and the state TextView doesn't change until the first drag of the sheet.
There was actually no underlying side sheet bug here; the modal sheet has two ways of animating, window animations and the "native" SideSheetBehavior ViewDragHelper animations. In the catalog, the modal sheet's text views weren't getting set yet because it was using the window animations to enter/exit and the callback doesn't run until it's dragged with SideSheetBehavior's ViewDragHelper. The only change necessary here is to set the TextViews to Visibility#GONE until the callback runs, so that there are no uninitialized TextViews visible on screen.
Resolves https://github.com/material-components/material-components-android/issues/3167 .
PiperOrigin-RevId: 529220073
2023-05-04 07:41:27 -07:00
afohrman
b984e64445
[Predictive Back] [Side Sheet] Added handleBackInvoked() predictive back support for coplanar side sheets.
...
Added an AnimatorUpdateListener that runs in finishBackProgress() to make the coplanar sibling's margins update as the sheet slides back to its origin edge.
PiperOrigin-RevId: 527749916
2023-04-28 14:46:43 -04:00
dsn5ft
d8c5c2c87d
[Predictive Back] Fix custom nav drawer Catalog demo pre-T crash due to OnBackAnimationCallback class not found
...
PiperOrigin-RevId: 527348628
2023-04-26 16:23:49 -04:00
afohrman
562285e051
[Predictive Back][Side Sheet] Added predictive back support for standard side sheets.
...
PiperOrigin-RevId: 527326750
2023-04-26 16:20:46 -04:00
pfthomas
29b59c21f5
[MaterialDatePicker] Add getTextColor to DayViewDecorator
...
PiperOrigin-RevId: 527265648
2023-04-26 16:19:16 -04:00
afohrman
d0ad45e1a1
[Side Sheet] Added left/start modal sheet.
...
Sheet gravity is intended to be set once at setup before the sheet is shown; sheet gravity changes are not supported at runtime and will cause an IllegalStateException.
Also refactored modal sheet demo to recreate the sheet every time it's shown, which allows the sheet gravity changes to take effect for modal sheets.
PiperOrigin-RevId: 526957847
2023-04-25 17:07:13 -04:00
raajkumars
3b43d41f16
[M3][Catalog][Search] Updated SearchDemoUtils to mark the class and methods as public so that it can be resued.
...
PiperOrigin-RevId: 525549879
2023-04-24 15:25:09 -04:00