Google is committed to advancing racial equity for Black communities. See how.

MaterialFadeThrough

public final class MaterialFadeThrough
extends Visibility

java.lang.Object
   ↳ androidx.transition.Transition
     ↳ androidx.transition.Visibility
       ↳ com.google.android.material.transition.MaterialFadeThrough


A Visibility transition that, by default, provides a fade in and scale out when appearing and a fade out and scale out when disappearing.

Summary

Inherited constants

From class androidx.transition.Visibility
From class androidx.transition.Transition

Public constructors

MaterialFadeThrough()

Public methods

P extends VisibilityAnimatorProvider getPrimaryAnimatorProvider()
VisibilityAnimatorProvider getSecondaryAnimatorProvider()
Animator onAppear(ViewGroup sceneRoot, View view, TransitionValues startValues, TransitionValues endValues)
Animator onDisappear(ViewGroup sceneRoot, View view, TransitionValues startValues, TransitionValues endValues)
void setSecondaryAnimatorProvider(VisibilityAnimatorProvider secondaryAnimatorProvider)

Inherited methods

From class androidx.transition.Visibility
From class androidx.transition.Transition
From class java.lang.Object

Public constructors

MaterialFadeThrough

MaterialFadeThrough ()

Public methods

getPrimaryAnimatorProvider

P extends VisibilityAnimatorProvider getPrimaryAnimatorProvider ()

Returns
P extends VisibilityAnimatorProvider

getSecondaryAnimatorProvider

VisibilityAnimatorProvider getSecondaryAnimatorProvider ()

Returns
VisibilityAnimatorProvider

onAppear

Animator onAppear (ViewGroup sceneRoot, 
                View view, 
                TransitionValues startValues, 
                TransitionValues endValues)

Parameters
sceneRoot ViewGroup

view View

startValues TransitionValues

endValues TransitionValues

Returns
Animator

onDisappear

Animator onDisappear (ViewGroup sceneRoot, 
                View view, 
                TransitionValues startValues, 
                TransitionValues endValues)

Parameters
sceneRoot ViewGroup

view View

startValues TransitionValues

endValues TransitionValues

Returns
Animator

setSecondaryAnimatorProvider

void setSecondaryAnimatorProvider (VisibilityAnimatorProvider secondaryAnimatorProvider)

Parameters
secondaryAnimatorProvider VisibilityAnimatorProvider