public class

MotionScene.Transition.TransitionOnClick

extends java.lang.Object

 java.lang.Object

↳androidx.constraintlayout.motion.widget.MotionScene.Transition.TransitionOnClick

Summary

Fields
public static final intANIM_TO_END

public static final intANIM_TO_START

public static final intANIM_TOGGLE

public static final intJUMP_TO_END

public static final intJUMP_TO_START

Constructors
publicTransitionOnClick(Context context, MotionScene.Transition transition, XmlPullParser parser)

publicTransitionOnClick(MotionScene.Transition transition, int id, int action)

Methods
public voidaddOnClickListeners(MotionLayout motionLayout, int currentState, MotionScene.Transition transition)

Add the on click listeners for the current state

public voidonClick(View view)

public voidremoveOnClickListeners(MotionLayout motionLayout)

Remove the OnClickListeners (typically called because you are removing the transition)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public static final int ANIM_TO_END

public static final int ANIM_TOGGLE

public static final int ANIM_TO_START

public static final int JUMP_TO_END

public static final int JUMP_TO_START

Constructors

public TransitionOnClick(Context context, MotionScene.Transition transition, XmlPullParser parser)

public TransitionOnClick(MotionScene.Transition transition, int id, int action)

Methods

public void addOnClickListeners(MotionLayout motionLayout, int currentState, MotionScene.Transition transition)

Add the on click listeners for the current state

Parameters:

motionLayout:
currentState:
transition:

public void removeOnClickListeners(MotionLayout motionLayout)

Remove the OnClickListeners (typically called because you are removing the transition)

Parameters:

motionLayout:

public void onClick(View view)