VisibilityAnimatorProvider

public interface VisibilityAnimatorProvider

com.google.android.material.transition.platform.VisibilityAnimatorProvider


An interface which is able to provide an Animator to be supplied to a Visibility transition when a target view is appearing or disappearing.

Summary

Public methods

abstract Animator createAppear(ViewGroup sceneRoot, View view)

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

abstract Animator createDisappear(ViewGroup sceneRoot, View view)

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

Public methods

createAppear

public abstract 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

public abstract 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