1779 Commits

Author SHA1 Message Date
connieshi
bea697804d [Badge] Fix lint error.
PiperOrigin-RevId: 338072863
2020-10-20 09:23:31 -07:00
hunterstich
fe58a4c81e [Button] Updated custom background warning message to be more informative.
Resolves https://github.com/material-components/material-components-android/issues/1803

PiperOrigin-RevId: 337894750
2020-10-19 11:47:05 -07:00
connieshi
bcb148681b [Badge] Save and restore visibility on config change.
Resolves https://github.com/material-components/material-components-android/issues/1779

PiperOrigin-RevId: 337889750
2020-10-19 11:44:23 -07:00
dniz
90929ee274 [MaterialDatePicker] Fixed overzealous smooth scrolling when horizontally swiping between months
Resolves https://github.com/material-components/material-components-android/issues/920

PiperOrigin-RevId: 337879242
2020-10-19 11:43:33 -07:00
haodong
a7f1430f62 [ProgressIndicator] Deprecated CIRCULAR type in ProgressIndicator.
PiperOrigin-RevId: 337590517
2020-10-19 05:57:40 -07:00
isabellekim
eec282bc05 [TimePicker] Moved TimePicker.Button style to MaterialTimePicker theme overlay.
PiperOrigin-RevId: 337536394
2020-10-19 05:55:37 -07:00
marianomartin
8da7336e89 [TimePicker] Added a style for timepicker to customize icons
PiperOrigin-RevId: 337525216
2020-10-19 05:54:54 -07:00
marianomartin
172e7ba710 [TimePicker] Added a style for the input mode button
PiperOrigin-RevId: 337513706
2020-10-19 05:50:35 -07:00
hunterstich
0afcb48f14 [TabLayout] Automated g4 rollback of changelist 337128442.
*** Reason for rollback ***

[TabLayout] Roll forward with dot indicator fix

*** Original change description ***

Automated g4 rollback of changelist 337092676

PiperOrigin-RevId: 337484043
2020-10-16 05:54:50 -07:00
hunterstich
49ad52288c [Motion] Updated FadeThroughProvider and FadeProvider to restore target's original alpha value.
Resloves https://github.com/material-components/material-components-android/issues/1701

PiperOrigin-RevId: 337374791
2020-10-16 05:53:46 -07:00
marianomartin
73031815ad [TimePicker] Added Theme Overlay to set default styles for widgets
PiperOrigin-RevId: 337338438
2020-10-15 13:42:16 -07:00
cketcham
64843c9786 [Slider] Fix touch tracking callbacks
In some cases start tracking touch wouldn't be called, and in others stop tracking touch would be called even if no pointer was ever updated

PiperOrigin-RevId: 337314602
2020-10-15 13:41:20 -07:00
dniz
a21a30026a [CollapsingToolbarLayout] Fixed scrolling sibling view bottom cut off issue
There was an issue when navigating back to a fragment with a CollapsingToolbarLayout, where the items at bottom of the CollapsingToolbarLayout's scrolling sibling view were cut off and couldn't be reached by scrolling. It had to do with the minimum height of the CollapsingToolbarLayout not being set at the point when HeaderScrollingViewBehavior calculates the height of the scrolling view in its onMeasureChild() method. The onMeasureChild() method factors in AppBarLayout#getTotalScrollRange which is dependent on the minimum height of the CollapsingToolbarLayout, so moving the CollapsingToolbarLayout's setMinimumHeight() from its onLayout() to its onMeasure() fixes the issue by making the minimum height available earlier.

Resolves https://github.com/material-components/material-components-android/issues/1558
Resolves https://github.com/material-components/material-components-android/issues/846
Resolves https://github.com/material-components/material-components-android/issues/1070
Resolves https://github.com/material-components/material-components-android/issues/1198

PiperOrigin-RevId: 337309314
2020-10-15 13:40:26 -07:00
hunterstich
cdea820c0f [ProgressIndicator] Moved comment into constructor body.
PiperOrigin-RevId: 337307024
2020-10-15 13:38:41 -07:00
haodong
c3d59395a5 [ProgressIndicator] Update GM testing and catalog.
PiperOrigin-RevId: 337198418
2020-10-15 13:37:00 -07:00
haodong
10e7349853 [ProgressIndicator] Moved the logic from ProgressIndicator to BaseProgressIndicator and made CircularProgressIndicator functional.
PiperOrigin-RevId: 337188667
2020-10-15 13:34:50 -07:00
Material Design Team
b7bca363ae Automated g4 rollback of changelist 337164724
PiperOrigin-RevId: 337179972
2020-10-15 13:30:57 -07:00
marianomartin
e619132cbd [TimePicker] Added themoverlay to set default styles for widgets
PiperOrigin-RevId: 337164724
2020-10-15 13:30:13 -07:00
hunterstich
91589f4c24 Automated g4 rollback of changelist 337092676
PiperOrigin-RevId: 337128442
2020-10-15 13:28:59 -07:00
haodong
113bff7dd7 [ProgressIndicator] Use CircularProgressIndicatorSpec in CIRCULAR type.
PiperOrigin-RevId: 337106191
2020-10-15 13:27:53 -07:00
isabellekim
1cc34a09c7 [TimePicker] Update ripple color on the mode button for time picker to be based on the content color.
PiperOrigin-RevId: 337103634
2020-10-15 13:26:19 -07:00
hunterstich
f0a80c4e41 [TabLayout] Automated g4 rollback of changelist 336764852.
*** Reason for rollback ***

Roll forward with fix

*** Original change description ***

Automated g4 rollback of changelist 336704515

PiperOrigin-RevId: 337092676
2020-10-15 13:25:34 -07:00
haodong
0a75c746ff [ProgressIndicator] Added CircularProgressIndicator and CircularProgressIndicatorSpec.
PiperOrigin-RevId: 337009157
2020-10-15 13:24:45 -07:00
connieshi
9487c33b8a Automated g4 rollback of changelist 336347365
PiperOrigin-RevId: 336978123
2020-10-15 13:23:56 -07:00
Material Design Team
ffcf70adde [DatePicker] Changes to allow the MaterialCalendar to exist inside a scrollable view.
PiperOrigin-RevId: 336952059
2020-10-15 13:23:12 -07:00
haodong
95677464fd [ProgressIndicator] Updated ProgressIndicatorSpec to use BaseProgressIndicatorSpec.
PiperOrigin-RevId: 336944763
2020-10-15 13:22:15 -07:00
connieshi
6951bd5179 [Chip] Support elevation overlay.
Resolves https://github.com/material-components/material-components-android/issues/1749

PiperOrigin-RevId: 336930100
2020-10-15 13:21:17 -07:00
cketcham
aad88a0b38 [Slider] Stop checking for scroll if not in a scrolling container
This allows the thumb to be repositioned more quickly if the thumb is moved a little rather than waiting for the touch to move past the slop.

PiperOrigin-RevId: 336929171
2020-10-15 13:19:50 -07:00
hunterstich
f743057941 Automated g4 rollback of changelist 336704515
PiperOrigin-RevId: 336764852
2020-10-15 13:16:16 -07:00
hunterstich
f8f3d9086e [TabLayout] Added initial indicator interpolation extensibility.
Added a linear and elastic interpolator to handle specing the indicator at any point between two tabs.

PiperOrigin-RevId: 336704515
2020-10-15 13:14:22 -07:00
hunterstich
1fc5e8c51c [Slider] Added animation to scale in/out label above thumbs.
PiperOrigin-RevId: 336635571
2020-10-15 13:13:28 -07:00
haodong
4a56bca6c8 Automated g4 rollback of changelist 336312110
PiperOrigin-RevId: 336562092
2020-10-15 13:12:42 -07:00
haodong
33494486c8 Automated g4 rollback of changelist 336313426
PiperOrigin-RevId: 336388324
2020-10-15 13:11:59 -07:00
haodong
42840c0e24 Automated g4 rollback of changelist 336314674
PiperOrigin-RevId: 336388120
2020-10-15 13:10:39 -07:00
haodong
9199b49bca Automated g4 rollback of changelist 336315813
PiperOrigin-RevId: 336387821
2020-10-15 13:07:44 -07:00
haodong
8c3e3bf955 Automated g4 rollback of changelist 336326618
PiperOrigin-RevId: 336379824
2020-10-15 13:01:51 -07:00
Material Design Team
0f717f8cce Automated g4 rollback of changelist 336306885
PiperOrigin-RevId: 336347365
2020-10-15 13:01:02 -07:00
haodong
64561681dd [ProgressIndicator] Update GM testing and catalog.
PiperOrigin-RevId: 336326618
2020-10-15 12:59:40 -07:00
haodong
322d073036 [ProgressIndicator] Moved the logic from ProgressIndicator to BaseProgressIndicator and made CircularProgressIndicator functional.
PiperOrigin-RevId: 336315813
2020-10-15 12:55:30 -07:00
haodong
9215166f7e [ProgressIndicator] Use CircularProgressIndicatorSpec in CIRCULAR type.
PiperOrigin-RevId: 336314674
2020-10-15 12:49:05 -07:00
haodong
5cfcc2e317 [ProgressIndicator] Added CircularProgressIndicator and CircularProgressIndicatorSpec.
PiperOrigin-RevId: 336313426
2020-10-15 12:41:02 -07:00
haodong
80aefb3ac7 [ProgressIndicator] Updated ProgressIndicatorSpec to use BaseProgressIndicatorSpec.
PiperOrigin-RevId: 336312110
2020-10-15 12:40:13 -07:00
haodong
e73d383b17 [ProgressIndicator] Added BaseProgressIndicator and BaseProgressIndicatorSpec.
PiperOrigin-RevId: 336311648
2020-10-15 12:39:06 -07:00
haodong
df6334fb0e [ProgressIndicator] Detach spec object from the drawable classes.
PiperOrigin-RevId: 336311315
2020-10-15 12:37:12 -07:00
haodong
1acb23bb0c [ProgressIndicator] Let indeterminate animator delegate classes use spec directly.
This is another step towards detaching the spec from drawable classes.

PiperOrigin-RevId: 336311000
2020-10-15 12:35:10 -07:00
haodong
e77fe1ea9a [ProgressIndicator] Let drawing delegate classes use spec directly.
This is one step towards detaching the spec from drawable classes.

PiperOrigin-RevId: 336309131
2020-10-15 12:34:15 -07:00
haodong
1c135f040c [ProgressIndicator] Added new attributes and styles for LinearProgressIndicator and CircularProgressIndicator.
PiperOrigin-RevId: 336308622
2020-10-15 12:32:41 -07:00
connieshi
5e35d14c18 [Badge] Update badge to support being anchored to any view in pre 18.
In <API18, BadgeDrawable will dynamically 1) wrap the anchor in a FrameLayout and 2) replace the anchor with the FrameLayout in the anchor' view hierarchy. BadgeDrawable will set itself as foreground on the FrameLayout.

If the user does not want BadgeDrawable to manipulate its view hierarchy, the user can pass in an instance of FrameLayout `customBadgeParent` in #attachBadgeDrawable instead.

Labeled BadgeUtils as experimental and removed the RestrictedTo(Scope.Library) annotation.

Updated TopAppBar main demo to show a badge on a toolbar menu item.

PiperOrigin-RevId: 336306885
2020-10-15 12:31:14 -07:00
Gabriele Mariotti
98c090dd3f [MaterialTimePicker] Changed dimens according to spec
Resolves https://github.com/material-components/material-components-android/pull/1743

GIT_ORIGIN_REV_ID=1cfa9c620286b6d35838f470f9bf20d8687f9296
PiperOrigin-RevId: 336135983
2020-10-15 12:30:26 -07:00
Brandon Lerner
416b8cb94a [Slider] Invalidate after new ColorStateList and return early if same
Resolves https://github.com/material-components/material-components-android/pull/1786

GIT_ORIGIN_REV_ID=1459f706028f25b13d8dbae850ea66b4b8294153
PiperOrigin-RevId: 336111124
2020-10-15 12:23:54 -07:00