MaterialFade
public
final
class
MaterialFade
extends Visibility
java.lang.Object | |||
↳ | android.transition.Transition | ||
↳ | android.transition.Visibility | ||
↳ | com.google.android.material.transition.platform.MaterialFade |
A Visibility
transition that is composed of a fade and scale of
incoming content and a simple fade of outgoing content.
MaterialFade supports theme-based easing and duration. The transition will load theme values
from the SceneRoot
's context before it runs, and only use them if the corresponding
properties weren't already set on the transition instance.
Summary
Inherited constants |
---|
Public constructors | |
---|---|
MaterialFade()
|
Public methods | |
---|---|
void
|
addAdditionalAnimatorProvider(VisibilityAnimatorProvider additionalAnimatorProvider)
Adds an additional |
void
|
clearAdditionalAnimatorProvider()
Clears all additional |
P extends VisibilityAnimatorProvider
|
getPrimaryAnimatorProvider()
Returns the primary |
VisibilityAnimatorProvider
|
getSecondaryAnimatorProvider()
Returns the secondary |
Animator
|
onAppear(ViewGroup sceneRoot, View view, TransitionValues startValues, TransitionValues endValues)
|
Animator
|
onDisappear(ViewGroup sceneRoot, View view, TransitionValues startValues, TransitionValues endValues)
|
boolean
|
removeAdditionalAnimatorProvider(VisibilityAnimatorProvider additionalAnimatorProvider)
Removes an additional |
void
|
setSecondaryAnimatorProvider(VisibilityAnimatorProvider secondaryAnimatorProvider)
Sets the secondary |
Inherited methods | |
---|---|
Public constructors
MaterialFade
public MaterialFade ()
Public methods
addAdditionalAnimatorProvider
public void addAdditionalAnimatorProvider (VisibilityAnimatorProvider additionalAnimatorProvider)
Adds an additional VisibilityAnimatorProvider
, which provides animators be played
together with the primary and secondary VisibilityAnimatorProviders
.
Parameters | |
---|---|
additionalAnimatorProvider |
VisibilityAnimatorProvider |
clearAdditionalAnimatorProvider
public void clearAdditionalAnimatorProvider ()
Clears all additional VisibilityAnimatorProviders
that were
previously added.
getPrimaryAnimatorProvider
public P extends VisibilityAnimatorProvider getPrimaryAnimatorProvider ()
Returns the primary VisibilityAnimatorProvider
for this transition, which can be
modified but not swapped out completely.
Returns | |
---|---|
P extends VisibilityAnimatorProvider |
getSecondaryAnimatorProvider
public VisibilityAnimatorProvider getSecondaryAnimatorProvider ()
Returns the secondary VisibilityAnimatorProvider
for this transition or null, which can
be modified or swapped out completely for a different VisibilityAnimatorProvider
.
Returns | |
---|---|
VisibilityAnimatorProvider |
onAppear
public Animator onAppear (ViewGroup sceneRoot, View view, TransitionValues startValues, TransitionValues endValues)
Parameters | |
---|---|
sceneRoot |
ViewGroup |
view |
View |
startValues |
TransitionValues |
endValues |
TransitionValues |
Returns | |
---|---|
Animator |
onDisappear
public Animator onDisappear (ViewGroup sceneRoot, View view, TransitionValues startValues, TransitionValues endValues)
Parameters | |
---|---|
sceneRoot |
ViewGroup |
view |
View |
startValues |
TransitionValues |
endValues |
TransitionValues |
Returns | |
---|---|
Animator |
removeAdditionalAnimatorProvider
public boolean removeAdditionalAnimatorProvider (VisibilityAnimatorProvider additionalAnimatorProvider)
Removes an additional VisibilityAnimatorProvider
that was previously added.
Parameters | |
---|---|
additionalAnimatorProvider |
VisibilityAnimatorProvider |
Returns | |
---|---|
boolean |
setSecondaryAnimatorProvider
public void setSecondaryAnimatorProvider (VisibilityAnimatorProvider secondaryAnimatorProvider)
Sets the secondary VisibilityAnimatorProvider
, which provides animators to be played
together with the primary VisibilityAnimatorProvider
.
Parameters | |
---|---|
secondaryAnimatorProvider |
VisibilityAnimatorProvider |