512 Commits

Author SHA1 Message Date
haodong
968fb195dc [ProgressIndicator] Updated track thickness used in standalone demo as 2.5 dp.
PiperOrigin-RevId: 343532292
2020-11-20 15:07:33 -05:00
haodong
9d7ae04e0e [ProgressIndicator] Renamed some attributes.
PiperOrigin-RevId: 343299956
2020-11-19 12:33:42 -05:00
cketcham
b163458a3a [BottomSheet] Updates the way BottomSheet handles insets
This updates ThemeOverlay styles to prevent drawing a transparent nav bar and updates BottomSheetBehavior and BottomSheetDialog to handle insets correctly so content isn't drawn behind the status bar or navigation bar.

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

PiperOrigin-RevId: 343006492
2020-11-18 10:40:16 -05:00
afohrman
151be9bb11 [Motion] Added basic music player and container transform to hero music player demo app.
Added a music player to the hero music player demo app, and a container transition from the FAB to the music player. The music player has a progress indicator and rewind, play, fast forward and volume controls; at this point, they all do nothing.

The transition uses a View to View container transform transition to transition from the FAB to the music player.

As of now, the transition does not touch the album view - it just jumps to underneath the music player for now.

PiperOrigin-RevId: 342915096
2020-11-17 15:54:49 -05:00
Drew Hamilton
c4f7de167f [ShapeableImageView] Support contentPadding
Resolves https://github.com/material-components/material-components-android/pull/1871

GIT_ORIGIN_REV_ID=42b91686512ed77d38f5a70a26cc52157ff4184b
Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
PiperOrigin-RevId: 342906676
2020-11-17 15:52:38 -05:00
haodong
be6ed3da48 [ProgressIndicator] Updated class visibility.
PiperOrigin-RevId: 342664697
2020-11-16 16:40:34 -05:00
Drew Hamilton
af73a1771e [ShapeableImageView] Call invalidateOutline when shape is changed
Resolves https://github.com/material-components/material-components-android/pull/1769

PiperOrigin-RevId: 342118551
2020-11-14 10:12:36 -05:00
haodong
e1d979631d [ProgressIndicator] Combined attributes show/hideBehaviorLinear and show/hideBehaviorCircular.
PiperOrigin-RevId: 342086777
2020-11-14 10:07:06 -05:00
marianomartin
60767159dc [catalog] change fragment name to be one line max
PiperOrigin-RevId: 342085043
2020-11-14 10:05:24 -05:00
haodong
b1ef02a16b [ProgressIndicator] Cleaned up deprecated class and resources.
PiperOrigin-RevId: 342076767
2020-11-12 13:53:23 -05:00
dniz
ad1d173018 [Motion] Updated MaterialContainerTransform to support overshoot and added OvershootInterpolator, AnticipateOvershootInterpolator, and BounceInterpolator options to Catalog demos
Allows overshoot for the translation and width/height scale parts of the container transform's animation, not the fade part of the animation.

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

PiperOrigin-RevId: 341432972
2020-11-09 13:34:50 -05:00
gabin8
5642d5f200 [Catalog] Fixed crash in TransitionMusicAlbumDemoFragment
Resolves https://github.com/material-components/material-components-android/issues/1831
Resolves https://github.com/material-components/material-components-android/pull/1832

GIT_ORIGIN_REV_ID=0f265b4a5208d79c73c42c462b644b895e65b69a
PiperOrigin-RevId: 339482484
2020-10-29 15:18:05 -04:00
leticiars
c9f2caaf9d Automated g4 rollback of changelist 339130013
PiperOrigin-RevId: 339279131
2020-10-28 09:40:41 -04:00
hunterstich
4ae97e52fc [Motion] Added shared axis Activity demo to catalog
PiperOrigin-RevId: 339269694
2020-10-27 11:08:52 -07:00
connieshi
5398d6f6f8 [RadioButton] Update demo to add an enabled option to the radio group that previously only contained disabled options.
PiperOrigin-RevId: 339234331
2020-10-27 11:07:48 -07:00
Material Design Team
8f6b39d860 Automated g4 rollback of changelist 339053684
PiperOrigin-RevId: 339130013
2020-10-27 10:21:11 -07:00
Material Design Team
3059e2816e Suppress existing warnings for androidx @RestrictTo annotation
Cleanup change automatically generated by javacflume/refactory
Refactoring: java/com/google/devtools/staticanalysis/errorprone:RestrictToEnforcer_refactoring
PiperOrigin-RevId: 339077195
2020-10-27 10:19:27 -07:00
leticiars
948bb327f9 [ExposedDropdownMenu] Update paddings to match spec.
PiperOrigin-RevId: 339053684
2020-10-27 10:18:36 -07:00
haodong
8bc3f13079 [ProgressIndicator] Updated LINEAR type to LinearProgressIndicator in catalog.
PiperOrigin-RevId: 338757151
2020-10-27 10:17:10 -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
haodong
c3d59395a5 [ProgressIndicator] Update GM testing and catalog.
PiperOrigin-RevId: 337198418
2020-10-15 13:37:00 -07:00
haodong
f021ef5ee2 [ProgressIndicator] Updated MDC catalog to replace ProgressIndicator (CIRCULAR type) with CircularProgressIndicator.
PiperOrigin-RevId: 337190254
2020-10-15 13:35:39 -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
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
haodong
95677464fd [ProgressIndicator] Updated ProgressIndicatorSpec to use BaseProgressIndicatorSpec.
PiperOrigin-RevId: 336944763
2020-10-15 13:22:15 -07:00
hunterstich
f743057941 Automated g4 rollback of changelist 336704515
PiperOrigin-RevId: 336764852
2020-10-15 13:16:16 -07:00
cketcham
0405ae143d Updates usages of old constraintlayout to androidx
PiperOrigin-RevId: 336712265
2020-10-15 13:15:20 -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
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
3ab08a2227 Automated g4 rollback of changelist 336318812
PiperOrigin-RevId: 336386654
2020-10-15 13:05:08 -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
6d0e89aa4c [ProgressIndicator] Updated MDC catalog to replace ProgressIndicator (CIRCULAR type) with CircularProgressIndicator.
PiperOrigin-RevId: 336318812
2020-10-15 12:56:47 -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
df6334fb0e [ProgressIndicator] Detach spec object from the drawable classes.
PiperOrigin-RevId: 336311315
2020-10-15 12:37:12 -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
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
dniz
2f9c2b0491 [Cleanup] Fix formatting of copyrights in xml
PiperOrigin-RevId: 334423264
2020-09-29 16:34:51 -04:00
isabellekim
6afbc7ba45 [Dialog] Update Catalog to return user input and show it in a toast for multi-select list and single select list demos.
PiperOrigin-RevId: 333771569
2020-09-28 11:48:42 -07:00
dniz
a6d788f28e [CollapsingToolbarLayout] Added collapsingToolbarLayoutStyle default theme attribute
PiperOrigin-RevId: 333515330
2020-09-24 09:02:13 -07:00
leticiars
130d05a54b [Catalog] Updated menu labels
PiperOrigin-RevId: 332293906
2020-09-18 14:01:26 -07:00