11 Commits

Author SHA1 Message Date
hunterstich
8b863d32be [Motion] Update ScaleProvider to use growing/shrinking naming. Fix MaterialSharedAxis isForward getter naming.
PiperOrigin-RevId: 313217150
(cherry picked from commit 56b33909ee3651e74120bc89e95af534dc546f1c)
2020-05-27 15:13:12 -04:00
dniz
b509e5589c [Motion] Refactor MaterialVisibility to use constructor params for primary/secondary instead of abstract getDefault methods
Guarantees that the primary/secondary animator providers are initialized up front, which allows us to simplify the getters/setters to not have an initialization side-effect

PiperOrigin-RevId: 309435463
(cherry picked from commit ae7177d9de9032cb071126dd0d738387034385f3)
2020-05-27 14:52:44 -04:00
hunterstich
cdee36707a [Motion] Replace MaterialVisibility subclass static constructors for standard constructors
PiperOrigin-RevId: 308793749
(cherry picked from commit d025a3b2c3bef53affbeb22c17daed6247755733)
2020-05-27 14:52:44 -04:00
hunterstich
f817305b76 [Motion] Make public transition classes final which are not meant to be subclassed.
PiperOrigin-RevId: 308711224
(cherry picked from commit dc7d3a5d4d902b686578e6180b7f0d2b4f20b938)
2020-05-27 14:52:44 -04:00
hunterstich
5490b0d91f [Motion] Update MaterialVisibility to not need initialize method
- Add initialization check for secondary animator provider in MaterialVisibility so subclasses no longer need to explicitly call MaterialVisibility#initialize.

PiperOrigin-RevId: 308687877
(cherry picked from commit e63cae59fb71b580399ab7479697b5493f7a9dd1)
2020-05-27 14:52:44 -04:00
dniz
e33c6d5067 [Motion] Update transitions to be based on androidx and add transitions platform subpackage to support Activities, Windows, etc.
PiperOrigin-RevId: 308651633
(cherry picked from commit cd36c2f5e77461b26f4723a765e11e6bf16a2a86)
2020-05-27 14:52:44 -04:00
SatoShun
3f5591ecae [MaterialSharedAxis] fix javadoc
Resolves https://github.com/material-components/material-components-android/pull/1210

GIT_ORIGIN_REV_ID=04314d6ef1150fc41e125ea6e49a3636413a7282
PiperOrigin-RevId: 307059021

(cherry picked from commit 9813cc5666d5aabddda00ebff3fb4a0f46c8eb30)
2020-05-27 14:52:43 -04:00
hunterstich
148938ca84 [Motion] Update MaterialFadeThrough and MaterialFade to use MaterialVisibility and remove context param.
This updaes the remaining transitions to compose themselves of two animators instead of two visibility transitions. This also removes the context parameter from MaterialFadeThrough, MaterialFade and MaterialSharedAxis' constructors.

PiperOrigin-RevId: 303332658
2020-03-27 11:40:38 -04:00
hunterstich
5b07d02c8e Refactor MaterialSharedAxis to be composed of two animators.
Resolves https://github.com/material-components/material-components-android/issues/1047#issuecomment-594966218

PiperOrigin-RevId: 301619025
2020-03-18 17:37:50 -04:00
hunterstich
fe1651939c Fix motion java doc lint errors
PiperOrigin-RevId: 300415917
2020-03-13 10:52:20 -04:00
hunterstich
a3a9793fb1 Fix container transform crash on API 21 and 22 due to path unioning.
PiperOrigin-RevId: 294924927
2020-02-13 13:49:21 -08:00