The Android Developer Challenge is back! Submit your idea before December 2.

TransitionValues

open class TransitionValues
kotlin.Any
   ↳ androidx.transition.TransitionValues

Data structure which holds cached values for the transition. The view field is the target which all of the values pertain to. The values field is a map which holds information for fields according to names selected by the transitions. These names should be unique to avoid clobbering values stored by other transitions, such as the convention project:transition_name:property_name. For example, the platform might store a property "alpha" in a transition "Fader" as "android:fader:alpha".

These values are cached during the androidx.transition.Transition#captureStartValues(TransitionValues) capture} phases of a scene change, once when the start values are captured and again when the end values are captured. These start/end values are then passed into the transitions via the for androidx.transition.Transition#createAnimator(android.view.ViewGroup, * TransitionValues, TransitionValues) method.

Summary

Public constructors

<init>(@NonNull view: View)

Public methods

open Boolean
equals(other: Any?)

open Int

open String

Properties

MutableMap<String!, Any!>!

The set of values tracked by transitions for this scene

View!

The View with these values

Public constructors

<init>

TransitionValues()

Deprecated: Use TransitionValues(View) instead

<init>

TransitionValues(@NonNull view: View)

Public methods

equals

open fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Properties

values

val values: MutableMap<String!, Any!>!

The set of values tracked by transitions for this scene

view

var view: View!

The View with these values