Specifies the action to perform when the user taps on a 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 the
following:
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 in the starting state, animate to the end. Otherwise, animate to the start.