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'smotion::constraintSetStartattribute. transitionToEnd- Animate from the current layout to the layout specified by the
<Transition>element'smotion:constraintSetEndattribute. jumpToStart- Jump from the current layout to the layout specified by the
<Transition>element'smotion::constraintSetStartattribute. jumpToEnd- Jump from the current layout to the layout specified by the
<Transition>element'smotion:constraintSetEndattribute. toggle- If the layout is currently in the starting state, animate to the end; otherwise, animate to the start.

