ViewTransition

public class ViewTransition


Provides a support for tag it Parses tag it implement the transition it will update ConstraintSet or sets For asynchronous it will create and drive a MotionController.

Summary

Constants

static final @NonNull String
static final @NonNull String
static final @NonNull String
static final @NonNull String
static final @NonNull int
static final @NonNull int
static final @NonNull int
static final @NonNull int
static final @NonNull int
static final @NonNull String

Public methods

@NonNull int

Gets the SharedValue it will be listening for.

@NonNull int
@NonNull int

Gets the ID of the SharedValue it will be listening for.

@NonNull int

Gets the type of transition to listen to.

@NonNull void
setSharedValue(@NonNull int sharedValue)

sets the SharedValue it will be listening for.

@NonNull void
setSharedValueCurrent(@NonNull int sharedValueCurrent)
@NonNull void
setSharedValueID(@NonNull int sharedValueID)

sets the ID of the SharedValue it will be listening for.

@NonNull void
setStateTransition(@NonNull int stateTransition)

Sets the type of transition to listen to.

@NonNull String

Constants

CONSTRAINT_OVERRIDE

@NonNull
public static final @NonNull String CONSTRAINT_OVERRIDE

CUSTOM_ATTRIBUTE

@NonNull
public static final @NonNull String CUSTOM_ATTRIBUTE

CUSTOM_METHOD

@NonNull
public static final @NonNull String CUSTOM_METHOD

KEY_FRAME_SET_TAG

@NonNull
public static final @NonNull String KEY_FRAME_SET_TAG

ONSTATE_ACTION_DOWN

@NonNull
public static final @NonNull int ONSTATE_ACTION_DOWN

ONSTATE_ACTION_DOWN_UP

@NonNull
public static final @NonNull int ONSTATE_ACTION_DOWN_UP

ONSTATE_ACTION_UP

@NonNull
public static final @NonNull int ONSTATE_ACTION_UP

ONSTATE_SHARED_VALUE_SET

@NonNull
public static final @NonNull int ONSTATE_SHARED_VALUE_SET

ONSTATE_SHARED_VALUE_UNSET

@NonNull
public static final @NonNull int ONSTATE_SHARED_VALUE_UNSET

VIEW_TRANSITION_TAG

@NonNull
public static final @NonNull String VIEW_TRANSITION_TAG

Public methods

getSharedValue

@NonNull
public int getSharedValue()

Gets the SharedValue it will be listening for.

Returns
int

getSharedValueCurrent

@NonNull
public int getSharedValueCurrent()

getSharedValueID

@NonNull
public int getSharedValueID()

Gets the ID of the SharedValue it will be listening for.

Returns
int

the id of the shared value

getStateTransition

@NonNull
public int getStateTransition()

Gets the type of transition to listen to.

Returns
int

ONSTATE_TRANSITION_*

setSharedValue

@NonNull
public void setSharedValue(@NonNull int sharedValue)

sets the SharedValue it will be listening for.

setSharedValueCurrent

@NonNull
public void setSharedValueCurrent(@NonNull int sharedValueCurrent)

setSharedValueID

@NonNull
public void setSharedValueID(@NonNull int sharedValueID)

sets the ID of the SharedValue it will be listening for.

setStateTransition

@NonNull
public void setStateTransition(@NonNull int stateTransition)

Sets the type of transition to listen to.

Parameters
@NonNull int stateTransition

toString

@NonNull
public String toString()