11 Commits

Author SHA1 Message Date
afohrman
8ccec334bd [Predictive Transitions] Added predictive transition support for fragments and views to the Material motion library, and enabled it in shared axis fragment transition demo.
This allows all MaterialVisibility transitions to be predictive, although each individual transition must be opted-in in order to be predictive/seekable.

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

PiperOrigin-RevId: 587108521
2023-12-04 15:44:19 +00:00
afohrman
15a2307e91 [Motion] Refactored applyThemeValues() and related methods.
PiperOrigin-RevId: 351220994
2021-01-11 21:19:11 -05:00
afohrman
8e79c7ea1c [Motion] Added theming to MaterialFade transition.
PiperOrigin-RevId: 351180119
2021-01-11 21:15:56 -05:00
marianomartin
555356b03f Internal cleanup
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
dniz
b854a73772 [Motion] Add support for adding additional animator providers to MaterialVisibility transitions
PiperOrigin-RevId: 309767552
2020-05-04 14:52:19 -04:00
dniz
04c93ea5bb [Motion] Remove TransitionValues params from VisibilityAnimatorProvider interface methods
PiperOrigin-RevId: 309763088
2020-05-04 14:41:17 -04:00
dniz
ae7177d9de [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
2020-05-01 15:08:35 -04:00
hunterstich
d025a3b2c3 [Motion] Replace MaterialVisibility subclass static constructors for standard constructors
PiperOrigin-RevId: 308793749
2020-04-28 06:52:44 -07:00
hunterstich
e63cae59fb [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
2020-04-27 18:05:51 -04:00
dniz
cd36c2f5e7 [Motion] Update transitions to be based on androidx and add transitions platform subpackage to support Activities, Windows, etc.
PiperOrigin-RevId: 308651633
2020-04-27 17:32:30 -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