Skip to content

Most visited

Recently visited

navigation
added in version 25.1.0
belongs to Maven artifact com.android.support:transition:27.0.0

TransitionValues

public class TransitionValues
extends Object

java.lang.Object
   ↳ android.support.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 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 createAnimator(android.view.ViewGroup, TransitionValues, TransitionValues) method.

Summary

Fields

public final Map<String, Object> values

The set of values tracked by transitions for this scene

public View view

The View with these values

Public constructors

TransitionValues()

Public methods

boolean equals(Object other)
int hashCode()
String toString()

Inherited methods

From class java.lang.Object

Fields

values

added in version 25.1.0
Map<String, Object> values

The set of values tracked by transitions for this scene

view

added in version 25.1.0
View view

The View with these values

Public constructors

TransitionValues

added in version 25.1.0
TransitionValues ()

Public methods

equals

boolean equals (Object other)

Parameters
other Object

Returns
boolean

hashCode

int hashCode ()

Returns
int

toString

String toString ()

Returns
String

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

WeChat で Google Developers をフォローする

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)