rightnao
16c1575758
[Carousel] Carousel updates and fixes
...
- If item width is more than twice the item height, limit the width to twice the item height and add a medium item to the hero variant of the carousel.
- Fix snaphelper to snap to closest keyline state instead of always the default keyline state
- Add new KeylineStatePositionList to keep track of which keyline states to be in for each position. Update scrollToPosition methods to take the correct keyline instead of default keyline
PiperOrigin-RevId: 537955672
2023-06-06 15:56:43 +00:00
rightnao
7d6a977d50
[Carousel] Fix contained mask logic to only update masks when it is still in view, and remove restrictions on mask size with childWidth/2F. The only restriction is that the right of the mask must be greater than the left of the mask.
...
PiperOrigin-RevId: 537080963
2023-06-05 18:42:52 +00:00
dsn5ft
fb56ab4130
[Predictive Back] Make MaterialMainContainerBackHelper collapsedView optional
...
PiperOrigin-RevId: 536880239
2023-06-05 18:41:24 +00:00
dsn5ft
e69a324a2f
[Predictive Back][Search] Fix issue on Android U where clicking SearchView back button causes SearchBar to disappear and back arrow animation to not run
...
PiperOrigin-RevId: 536876120
2023-06-05 18:25:48 +00:00
dsn5ft
2b5c75f966
[Resource Inspection] Set up Android Studio resource inspection annotation and annotation processor, and add @Attribute annotation to MaterialButton#getIconPadding
...
PiperOrigin-RevId: 536411748
2023-05-30 15:46:52 +00:00
Michael Totschnig
dae89b7ce2
[Dialog] Update DialogWhenLarge theme to have correct parent theme
...
Resolves https://github.com/material-components/material-components-android/pull/3402
Resolves https://github.com/material-components/material-components-android/issues/3400
Co-authored-by: imhappi
GIT_ORIGIN_REV_ID=8aee44c6a45954096083b06540e5aa1058eff34b
PiperOrigin-RevId: 534921469
2023-05-30 15:27:22 +00:00
pfthomas
1fcde2c8b2
[MaterialTimePicker] Fix crash when clicking OK/Cancel/Icon on text input mode due to hiding keyboard
...
PiperOrigin-RevId: 534824218
2023-05-24 14:29:55 +00:00
hunterstich
85b6d5018d
[Carousel] Fixed multi browse strategy clipping extra small items before being fully collapsed
...
This moves mask rect calculation from MaskableFrameLayout into CarouselLayoutManager so CarouselLayoutManager can change the offsetting of the mask inside a child and clip according to both the keylines and the carousel container boundary.
PiperOrigin-RevId: 533082558
2023-05-22 18:34:32 +00:00
Material Design Team
a511501286
[M3][Color] Updated content-based dynamic colors
...
PiperOrigin-RevId: 532182583
2023-05-16 19:58:14 +00:00
rightnao
340cd44b07
[Carousel] Add Hero carousel strategy
...
PiperOrigin-RevId: 531247503
2023-05-11 19:14:21 +00:00
leticiars
46778db594
[Gradle] Update AppCompat dependency to 1.6.1
...
This fixes Proguard warnings about ShadowDrawableWrapper.
Resolves https://github.com/material-components/material-components-android/issues/3374
PiperOrigin-RevId: 530651081
2023-05-09 13:38:23 -04:00
dsn5ft
577d23eceb
[Search] Fix expand/collapse animation for non-predictive back cases where rootView bounds are not equal to searchView bounds
...
PiperOrigin-RevId: 530596832
2023-05-09 13:15:20 -04:00
dsn5ft
7ccf6708b0
[MaterialDatePicker] Fix crash when clicking OK/Cancel on text input mode due to hiding keyboard
...
PiperOrigin-RevId: 529835294
2023-05-08 14:53:58 -04:00
rightnao
8938da8c28
[Carousel] Add CarouselSnapHelper
...
PiperOrigin-RevId: 529457461
2023-05-04 17:00:56 -04:00
afohrman
ad9ad204f8
[Side Sheet] Renamed private references of "origin" to "inner" in SheetDelegate and related delegate classes.
...
PiperOrigin-RevId: 529193878
2023-05-04 07:40:36 -07:00
rightnao
1c27404fc5
[Carousel] Refactor to reuse logic between different Carousel strategy classes
...
- Moved Arrangement class outside of MultiBrowseStrategy
- Added helper class CarouselStrategyHelper and moved common logic in MultiBrowseStrategy to CarouselStrategyHelper
PiperOrigin-RevId: 528924778
2023-05-03 16:06:57 -04:00
dsn5ft
2f135323b3
Automated g4 rollback of changelist 528735653
...
PiperOrigin-RevId: 528800431
2023-05-02 16:14:14 -04:00
Material Design Team
a3af01ce79
Automated g4 rollback of changelist 528599594
...
PiperOrigin-RevId: 528735653
2023-05-02 16:13:39 -04:00
dsn5ft
2a1a67f076
[Color] Temporarily remove v34 Android U color references which could be causing resource NotFoundExceptions
...
PiperOrigin-RevId: 528599594
2023-05-02 16:12:29 -04:00
pekingme
1562d0b64f
[ExposedDropdownMenu] Added attribute to set dropdown menu's container.
...
PiperOrigin-RevId: 528578402
2023-05-02 16:10:48 -04:00
afohrman
5ba704a273
[Predictive Back] [Side Sheet] Added updateBackProgress() predictive back support for coplanar side sheets.
...
Before this change, coplanar sheets responded to the sheet during finishBackProgress(), in handleBackInvoked(). After this change, coplanar sheets respond to the back progress while the predictive back event is in progress, in updateBackProgress().
PiperOrigin-RevId: 528470353
2023-05-01 10:53:53 -04: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
pekingme
824d75e773
[Color] Fixed lint error.
...
PiperOrigin-RevId: 527739167
2023-04-28 14:46:02 -04:00
afohrman
8ae8a3791a
[Side Sheet] Fixed side sheet swipe calculations in RightSheetDelegate.
...
These changes fix a bug for coplanar predictive back, where a sheet hide was triggered every time a predictive back swipe was started on a right coplanar sheet, rather than allowing the predictive back swipe.
PiperOrigin-RevId: 527681485
2023-04-28 14:45:04 -04:00
Material Design Team
a6cf0985c4
[M3][Color] Added ColorContrast API
...
PiperOrigin-RevId: 527645245
2023-04-27 16:39:34 -04:00
hunterstich
c031144d26
[NavigationView] Updated NavigationView to use ViewOutlineProvider to handle corner clipping when possible and remove drawerLayoutCornerClippingEnabled attribute.
...
PiperOrigin-RevId: 527633449
2023-04-27 16:38:17 -04:00
dsn5ft
52f1737dd8
[Predictive Back][Side Sheets] Fix subtle detached side sheet glitch where after predictive back the sheet does not fully slide off screen
...
PiperOrigin-RevId: 527577382
2023-04-27 16:37:18 -04:00
afohrman
f335a50907
[Predictive Back][Side Sheet] Added predictive back support for modal side sheets.
...
PiperOrigin-RevId: 527334991
2023-04-26 16:21:39 -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
pekingme
6980c40f12
[TopAppBar] Updated to take a CSL as the AppBarLayout background color.
...
PiperOrigin-RevId: 527090028
2023-04-26 16:18:09 -04:00
pubiqq
2e85f06247
[MaterialSwitch] Add support for setting thumb icon size
...
Resolves https://github.com/material-components/material-components-android/pull/2960
GIT_ORIGIN_REV_ID=8af4d0f06e98f4ffced715b2dcde78d7186e1afb
PiperOrigin-RevId: 526984037
2023-04-25 17:08:20 -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
pubiqq
44a97f4a83
[Badge] Fix table formatting and remove unnecessary badge invalidation
...
Resolves https://github.com/material-components/material-components-android/pull/3356
GIT_ORIGIN_REV_ID=9f6839aa225d567a26a7db948734c28a1bbae44a
PiperOrigin-RevId: 526735605
2023-04-25 17:06:16 -04:00
Material Design Team
b335436cf2
[M3][Color] Updated content-based dynamic with contrast levels
...
PiperOrigin-RevId: 526722393
2023-04-24 15:31:21 -04:00
pfthomas
f4d0f5653a
[MaterialDatePicker] a11y/i18n alignment
...
Resolves https://github.com/material-components/material-components-android/issues/3343
PiperOrigin-RevId: 526657661
2023-04-24 15:30:28 -04:00
rightnao
fdaff78506
[TopAppBar] Removing keyboard scroll event workaround for AppBarLayout since CoordinatorLayout issue has been fixed in androidx.core:core:1.10.0
...
Resolves https://github.com/material-components/material-components-android/issues/2249
PiperOrigin-RevId: 525775019
2023-04-24 15:29:47 -04:00
rightnao
3b2b827597
[NavigationRail] Integrate tokens and add shapeAppearance attribute
...
PiperOrigin-RevId: 525551069
2023-04-24 15:28:56 -04:00
dsn5ft
9405121f62
[Predictive Back] Update side container back helper to support containers with arbitrary child views
...
PiperOrigin-RevId: 525466973
2023-04-19 14:12:04 -07:00
pekingme
5da4c02176
[M3][Color] Color Internal Update
...
PiperOrigin-RevId: 525254468
2023-04-19 14:11:14 -07:00
Material Design Team
3ed7f7751c
[M3][Color] Internal Utilities library update
...
PiperOrigin-RevId: 525206741
2023-04-19 14:09:40 -07:00
Material Design Team
1fd695c72a
[M3][Color] Code style update
...
PiperOrigin-RevId: 525194182
2023-04-19 14:08:40 -07:00
rightnao
86cd9d70bf
[BottomSheet] Integrate tokens
...
PiperOrigin-RevId: 525177708
2023-04-19 13:55:04 -07:00
dsn5ft
c8a0d47825
[Bottom Sheet] Add method to allow programmatically changing shouldRemoveExpandedCorners behavior
...
PiperOrigin-RevId: 525155162
2023-04-19 13:54:32 -07:00
raajkumars
e56e9b1dde
[M3][Search] Fix Search view prefix style.
...
PiperOrigin-RevId: 524945100
2023-04-19 13:53:58 -07:00
rightnao
7bd9724078
[BottomNavigationView] Integrate tokens and add shape appearance support
...
PiperOrigin-RevId: 524919091
2023-04-19 13:53:26 -07:00
Michael Shafrir
d29ed38f5a
[Internal] Guard against NPE in ManufacturerUtils
...
Resolves https://github.com/material-components/material-components-android/pull/3347
GIT_ORIGIN_REV_ID=0d6a0096b1ec98ba598a559369d7f17ad9d1723c
PiperOrigin-RevId: 524912877
2023-04-17 12:18:07 -07:00
dsn5ft
a93c91a2e2
[Predictive Back][Search] Only use device corner radius if SearchView reaches edge of screen
...
PiperOrigin-RevId: 524283122
2023-04-17 12:17:13 -07:00
dsn5ft
1c01e82297
[Bottom Sheet] Update expanded corner removal to check if sheet view is actually at top of screen
...
PiperOrigin-RevId: 524275157
2023-04-17 12:16:37 -07:00
Material Design Team
884a4541e2
[Search] Support stylus handwriting in SearchBar
...
PiperOrigin-RevId: 524098693
2023-04-17 12:16:03 -07:00