Stay organized with collections Save and categorize content based on your preferences.

MotionScene.Transition.TransitionOnClick

public static class MotionScene.Transition.TransitionOnClick
extends Object implements View.OnClickListener

java.lang.Object
   ↳ androidx.constraintlayout.motion.widget.MotionScene.Transition.TransitionOnClick


Summary

Constants

int ANIM_TOGGLE

int ANIM_TO_END

int ANIM_TO_START

int JUMP_TO_END

int JUMP_TO_START

Public constructors

TransitionOnClick(Context context, MotionScene.Transition transition, XmlPullParser parser)
TransitionOnClick(MotionScene.Transition transition, int id, int action)

Public methods

void addOnClickListeners(MotionLayout motionLayout, int currentState, MotionScene.Transition transition)
void onClick(View view)
void removeOnClickListeners(MotionLayout motionLayout)

Inherited methods

Constants

ANIM_TOGGLE

public static final int ANIM_TOGGLE

Constant Value: 17 (0x00000011)

ANIM_TO_END

public static final int ANIM_TO_END

Constant Value: 1 (0x00000001)

ANIM_TO_START

public static final int ANIM_TO_START

Constant Value: 16 (0x00000010)

JUMP_TO_END

public static final int JUMP_TO_END

Constant Value: 256 (0x00000100)

JUMP_TO_START

public static final int JUMP_TO_START

Constant Value: 4096 (0x00001000)

Public constructors

TransitionOnClick

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

Parameters
context Context

transition MotionScene.Transition

parser XmlPullParser

TransitionOnClick

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

Parameters
transition MotionScene.Transition

id int

action int

Public methods

addOnClickListeners

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

Parameters
motionLayout MotionLayout

currentState int

transition MotionScene.Transition

onClick

public void onClick (View view)

Parameters
view View

removeOnClickListeners

public void removeOnClickListeners (MotionLayout motionLayout)

Parameters
motionLayout MotionLayout