The Android Developer Challenge is back! Submit your idea before December 2.

<onClick>

Specifies the action to perform when the user taps on a specific view. There can be multiple <onClick> nodes for a single <Transition>, with each <onClick> specifying a different target view and a different action to perform when the view is tapped.

Syntax

<onClick
    motion:targetId="@id/target_view"
    motion:clickAction="action"/>

Attributes

motion:targetId
View being monitored. When the user taps this view, the transition occurs.
motion:ClickAction
Action to perform when the view is tapped. Supported values are:
transitionToStart
Animate from the current layout to the layout specified by the <Transition> element's motion::constraintSetStart attribute.
transitionToEnd
Animate from the current layout to the layout specified by the <Transition> element's motion:constraintSetEnd attribute.
jumpToStart
Jump from the current layout to the layout specified by the <Transition> element's motion::constraintSetStart attribute.
jumpToEnd
Jump from the current layout to the layout specified by the <Transition> element's motion:constraintSetEnd attribute.
toggle
If the layout is currently in the starting state, animate to the end; otherwise, animate to the start.