3345 Commits

Author SHA1 Message Date
rightnao
0d265b7ca5 [Badge] Deprecate autoAdjustToGrandparentBounds attribute since now badges automatically move within first ancestor view that does not clip children
PiperOrigin-RevId: 630215388
2024-05-03 19:29:13 +00:00
pekingme
e4fbb84f47 [Shape] Fixed stroke path calculation for custom interpolation start shape.
PiperOrigin-RevId: 629942322
2024-05-02 15:45:01 +00:00
pekingme
cb5afbc1d6 [ProgressIndicator] Updated to draw the track in Circular indeterminate mode with an option to opt out this behavior.
PiperOrigin-RevId: 629828525
2024-05-02 15:43:35 +00:00
rightnao
3880efefef [Badge] Adjust badges to fit within the bounds of the first ancestor view that clips its children to avoid getting cut off
PiperOrigin-RevId: 629810011
2024-05-02 15:42:17 +00:00
dsn5ft
cadbd6af83 [Dialog] Temporarily suppress RtlCompat lint for res/layout/mtrl_alert_select_dialog_singlechoice.xml
PiperOrigin-RevId: 629180270
2024-04-30 20:01:48 +00:00
dsn5ft
890053a734 [Dialog] Temporarily suppress RtlCompat lint for res/layout/mtrl_alert_select_dialog_multichoice.xml
PiperOrigin-RevId: 629168705
2024-04-30 20:00:13 +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
Material Design Team
a7a234bf07 [Bottom Sheet] Prevents nested scroll from occurring in a scroll session when the bottom sheet is already being resized.
Previously, the bottom sheet could be fixed at any height while resizing it by triggering a fling in the opposite direction.

PiperOrigin-RevId: 628170687
2024-04-26 17:52:32 +00:00
pekingme
373008ad17 [ProgressIndicator] Added circular indeterminate animation options - advance (M3) and retreat (new).
PiperOrigin-RevId: 627941610
2024-04-26 17:51:26 +00:00
rightnao
cf143d0760 [NavigationBar] Modify test usage to use icon container so we don't have to special case the existence of the icon container
PiperOrigin-RevId: 627837170
2024-04-26 17:49:54 +00:00
kendricku
cc125d9b47 [Shape] Add interpolation between default and an arbitrary corner radius for Android Material Views.
PiperOrigin-RevId: 626446451
2024-04-23 20:20:48 +00:00
pfthomas
9b09b693d9 [Tokens] Update tokens to v4.0.0
PiperOrigin-RevId: 626141198
2024-04-19 21:18:49 +00:00
dsn5ft
25d189bb8d [TextAppearance] Update font loading to load synchronously for system font families
Also avoids creating the Typeface twice because previously shouldLoadFontSynchronously() and getFont() would both create a Typeface in some cases

PiperOrigin-RevId: 625813788
2024-04-18 18:48:09 +00:00
dsn5ft
136a685119 [Predictive Back] Update predictive back animations to use interpolation curve of (0.1, 0.1, 0, 1)
PiperOrigin-RevId: 625671874
2024-04-17 18:06:46 +00:00
rightnao
8c541e6b25 [Carousel] Prevent scrolling if there's less items than focal keylines
PiperOrigin-RevId: 625466841
2024-04-17 18:04:41 +00:00
rightnao
9393b9779e [Carousel] Support unclipped padding for uncontained variant of carousel
PiperOrigin-RevId: 625101250
2024-04-16 17:52:05 +00:00
dsn5ft
d056cc352f [Bottom Sheet] Allow dragging the sheet on overscroll when draggableOnNestedScroll=false
PiperOrigin-RevId: 624269903
2024-04-15 17:59:25 +00:00
dsn5ft
a35b6b835c [Bottom Sheet] Add ability to disable dragging/expanding/collapsing the sheet when touching/scrolling the nested scrolling child view
PiperOrigin-RevId: 624204480
2024-04-12 20:03:30 +00:00
Material Design Team
3e866b8715 [AppBarLayout] Allow scrolling up when the app bar is lifted.
1. Suppose the view is large enough to scroll down
2. After scrolling down, you hide a child view, which reduces the height to a value which means it would have been unscrollable in step 1
3. Now you can’t scroll back up

PiperOrigin-RevId: 623883120
2024-04-11 20:08:04 +00:00
dsn5ft
b77b1412a3 [Search] Add start delay to scrim animation during SearchBar to SearchView expand to reduce visual noise
PiperOrigin-RevId: 623875803
2024-04-11 20:07:18 +00:00
pekingme
c1531396de [ProgressIndicator] Improved cold start performance.
PiperOrigin-RevId: 623243122
2024-04-10 18:47:15 +00:00
dsn5ft
b56afa75a9 [SearchView] Update back arrow to be auto mirrored for RTL
PiperOrigin-RevId: 622863529
2024-04-09 18:46:12 +00:00
pekingme
7c77d5a8eb Automated g4 rollback of changelist 620909554
PiperOrigin-RevId: 621977121
2024-04-09 17:24:47 +00:00
pekingme
23bcd50682 [ProgressIndicator] Added ramping animation to wave amplitude for both Linear and Circular types. (roll forward)
PiperOrigin-RevId: 621631230
2024-04-03 21:15:30 +00:00
pekingme
2a80e162ce [ProgressIndicator] Improved the smoothness of the animation when inactive track's ends are close.
Resolves https://github.com/material-components/material-components-android/issues/4124

PiperOrigin-RevId: 621620538
2024-04-03 21:13:50 +00:00
pekingme
e8452fb389 [ProgressIndicator] Applied a workaround in Circular counter-clockwise.
Resolves https://github.com/material-components/material-components-android/issues/4125

PiperOrigin-RevId: 621606567
2024-04-03 21:13:16 +00:00
pekingme
b50cb1e9a0 [ProgressIndicator] Added waggle animation (wave speed) to active indicator in both Linear and Circular types. (roll forward)
PiperOrigin-RevId: 621299301
2024-04-03 21:11:57 +00:00
pfthomas
d2831cbfe1 [TimePicker] Make ClockFaceView not focusable
Prevent keyboard navigation from unnecessarily focusing the clock face.

PiperOrigin-RevId: 620981338
2024-04-02 15:02:20 +00:00
pekingme
89d94852d5 Internal change
PiperOrigin-RevId: 620909554
2024-04-02 15:01:48 +00:00
pekingme
c1b1d472d8 [ProgressIndicator] Internal revert.
PiperOrigin-RevId: 620344595
2024-04-02 14:59:54 +00:00
pekingme
267cb184a8 [ProgressIndicator] Internal revert.
PiperOrigin-RevId: 620339133
2024-04-02 14:59:14 +00:00
pekingme
627d14149b [ProgressIndicator] Added ramping animation to wave amplitude for both Linear and Circular types.
PiperOrigin-RevId: 620312414
2024-04-02 14:58:39 +00:00
pekingme
0f47e78010 [ProgressIndicator] Added waggle animation (wave speed) to active indicator in both Linear and Circular types.
PiperOrigin-RevId: 620305285
2024-04-02 14:58:02 +00:00
pfthomas
4f21b95526 [TimePicker] Only clear hour/minute fields when a digit is entered
Fixes issue with keyboard navigation that unnecessarily clears the text.

PiperOrigin-RevId: 620286833
2024-04-02 14:56:19 +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
rightnao
d88524297c [Carousel] Fix a11y issue with switch access highlighting incorrect bounds
PiperOrigin-RevId: 618961042
2024-03-26 21:20:10 +00:00
pekingme
da108f3976 [ProgressIndicator] Added wavy active indicator drawing for circular type.
PiperOrigin-RevId: 618216753
2024-03-25 21:17:59 +00:00
pekingme
e2cc0bb820 [ProgressIndicator] Updated the default value of wavelength and setters of wavelength and amplitude.
PiperOrigin-RevId: 617998236
2024-03-25 21:17:25 +00:00
pfthomas
f3a93d09a9 [NTC][Slider] Make tick size defaults to the stop indicator size if set
PiperOrigin-RevId: 617609939
2024-03-20 22:36:53 +00:00
Material Design Team
fb441e6cb8 [Search] Exclude icons from search bar handwriting bounds
PiperOrigin-RevId: 617405112
2024-03-20 22:32:30 +00:00
pekingme
ae1e710a96 [ProgressIndicator] Optimized to only leverage cached path for wavy track when necessary.
PiperOrigin-RevId: 616938854
2024-03-20 22:30:44 +00:00
pfthomas
5bf6831b14 [NavDrawer][a11y] Fix wrong item selected after click
PiperOrigin-RevId: 616214272
2024-03-20 18:47:11 +00:00
pubiqq
bb646b68af [Slider] Fix incorrect style of stop indicators near handles
Resolves https://github.com/material-components/material-components-android/pull/4097

GIT_ORIGIN_REV_ID=927159e78777a16472d96b2740295bdbce6361ab
PiperOrigin-RevId: 615993493
2024-03-15 17:31:46 +00:00
pekingme
ad97194108 [ProgressIndicator] Added wavy active indicator drawing in Linear type.
PiperOrigin-RevId: 614773805
2024-03-15 17:28:49 +00:00
pubiqq
3bc6612536 [Slider] Use a uniform way to update labels
Resolves https://github.com/material-components/material-components-android/pull/4093

GIT_ORIGIN_REV_ID=7db4936713bd31a070d4bb1d9743d99222840184
PiperOrigin-RevId: 614741678
2024-03-15 17:28:06 +00:00
dsn5ft
22de817c30 [Docs] Internal change
PiperOrigin-RevId: 613673995
2024-03-07 20:52:14 +00:00
Park-SM
ac77b4cfb5 [RangeSlider] Resolve issues that crash when assigning a large value to valueTo
Resolves https://github.com/material-components/material-components-android/pull/3979

GIT_ORIGIN_REV_ID=d09a42095cda8342b1f2a0fdf3a9ab9899cace45
PiperOrigin-RevId: 613196003
2024-03-06 11:47:24 -08:00
Thomas
399817ec77 [Slider] Updated the track drawing for some corner cases.
Resolves https://github.com/material-components/material-components-android/pull/4071
Resolves https://github.com/material-components/material-components-android/pull/4080
Resolves https://github.com/material-components/material-components-android/issues/4079
Resolves https://github.com/material-components/material-components-android/issues/4009

GIT_ORIGIN_REV_ID=76692c595d7e798545050ec22e6fafebe64f4587
PiperOrigin-RevId: 610841961
2024-02-29 08:54:52 -08:00
pekingme
28cc2441d0 [Tokens] Updated to version 2.3.4.
PiperOrigin-RevId: 610835532
2024-02-29 08:36:02 -08:00
pekingme
46fa6465fe [Cleanup] Internal change
PiperOrigin-RevId: 608668937
2024-02-29 08:27:55 -08:00