MotionScene.Transition.TransitionOnClick


public class MotionScene.Transition.TransitionOnClick implements View.OnClickListener


Summary

Constants

static final int
static final int
static final int
static final int
static final int

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
)

Add the on click listeners for the current state

void
onClick(View view)
void

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

Constants

ANIM_TOGGLE

Added in 2.2.0-rc01
public static final int ANIM_TOGGLE = 17

ANIM_TO_END

Added in 2.2.0-rc01
public static final int ANIM_TO_END = 1

ANIM_TO_START

Added in 2.2.0-rc01
public static final int ANIM_TO_START = 16

JUMP_TO_END

Added in 2.2.0-rc01
public static final int JUMP_TO_END = 256

JUMP_TO_START

Added in 2.2.0-rc01
public static final int JUMP_TO_START = 4096

Public constructors

TransitionOnClick

Added in 2.2.0-rc01
public TransitionOnClick(
    Context context,
    MotionScene.Transition transition,
    XmlPullParser parser
)

TransitionOnClick

Added in 2.2.0-rc01
public TransitionOnClick(MotionScene.Transition transition, int id, int action)

Public methods

addOnClickListeners

Added in 2.2.0-rc01
public void addOnClickListeners(
    MotionLayout motionLayout,
    int currentState,
    MotionScene.Transition transition
)

Add the on click listeners for the current state

Parameters
MotionLayout motionLayout
int currentState
MotionScene.Transition transition

onClick

Added in 2.2.0-rc01
public void onClick(View view)

removeOnClickListeners

Added in 2.2.0-rc01
public void removeOnClickListeners(MotionLayout motionLayout)

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

Parameters
MotionLayout motionLayout