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

Hold

public final class Hold
extends Visibility

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


A Visibility Transition that does nothing to the target views, which can be useful for preserving a scene on screen during a Fragment transition.

Summary

Inherited constants

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

Public constructors

Hold()

Public methods

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

Inherited methods

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

Public constructors

Hold

Hold ()

Public methods

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