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

FadeThroughProvider

public final class FadeThroughProvider
extends Object implements VisibilityAnimatorProvider

java.lang.Object
   ↳ com.google.android.material.transition.FadeThroughProvider


A class that configures and is able to provide an Animator that fades out or in a view.

FadeThroughProvider differs from FadeProvider in that it fades out and in views sequentially.

Summary

Public constructors

FadeThroughProvider()

Public methods

Animator createAppear(ViewGroup sceneRoot, View view)

Should return an Animator that animates in the appearing target view.

Animator createDisappear(ViewGroup sceneRoot, View view)

Should return an Animator that animates out the disappearing target view.

Inherited methods

From class java.lang.Object
From interface com.google.android.material.transition.VisibilityAnimatorProvider

Public constructors

FadeThroughProvider

FadeThroughProvider ()

Public methods

createAppear

Animator createAppear (ViewGroup sceneRoot, 
                View view)

Should return an Animator that animates in the appearing target view.

Parameters
sceneRoot ViewGroup: The root of the transition hierarchy, which can be useful for checking configurations such as RTL

view View: The view that is appearing

Returns
Animator

createDisappear

Animator createDisappear (ViewGroup sceneRoot, 
                View view)

Should return an Animator that animates out the disappearing target view.

Parameters
sceneRoot ViewGroup: The root of the transition hierarchy, which can be useful for checking configurations such as RTL

view View: The view that is disappearing

Returns
Animator