Kotlin |Java

public final class Hold 


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

Summary

Public constructors

Public methods

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

Public constructors

Hold

public Hold()

Public methods

onAppear

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

onDisappear

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

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026年05月14日 UTC.