Compartilhar via


Transition.PathMotion Property

Definition

Returns the algorithm object used to interpolate along two dimensions. -or- Sets the algorithm used to calculate two-dimensional interpolation.

public virtual Android.Transitions.PathMotion? PathMotion { [Android.Runtime.Register("getPathMotion", "()Landroid/transition/PathMotion;", "GetGetPathMotionHandler")] get; [Android.Runtime.Register("setPathMotion", "(Landroid/transition/PathMotion;)V", "GetSetPathMotion_Landroid_transition_PathMotion_Handler")] set; }
[<get: Android.Runtime.Register("getPathMotion", "()Landroid/transition/PathMotion;", "GetGetPathMotionHandler")>]
[<set: Android.Runtime.Register("setPathMotion", "(Landroid/transition/PathMotion;)V", "GetSetPathMotion_Landroid_transition_PathMotion_Handler")>]
member this.PathMotion : Android.Transitions.PathMotion with get, set

Property Value

The algorithm object used to interpolate along two dimensions.

Attributes

Remarks

Property getter documentation:

Returns the algorithm object used to interpolate along two dimensions. This is typically used to determine the View motion between two points.

When describing in XML, use a nested XML tag for the path motion. It can be one of the built-in tags arcMotion or patternPathMotion or it can be a custom PathMotion using pathMotion with the class attributed with the fully-described class name. For example:

{@code
<changeBounds>
<pathMotion class="my.app.transition.MyPathMotion"/>
</changeBounds>}

or

{@code
<changeBounds>
<arcMotion android:minimumHorizontalAngle="15"
                         android:minimumVerticalAngle="0"
                         android:maximumAngle="90"/>
</changeBounds>}

Java documentation for android.transition.Transition.getPathMotion().

Property setter documentation:

Sets the algorithm used to calculate two-dimensional interpolation.

Transitions such as android.transition.ChangeBounds move Views, typically in a straight path between the start and end positions. Applications that desire to have these motions move in a curve can change how Views interpolate in two dimensions by extending PathMotion and implementing android.transition.PathMotion#getPath(float, float, float, float).

When describing in XML, use a nested XML tag for the path motion. It can be one of the built-in tags arcMotion or patternPathMotion or it can be a custom PathMotion using pathMotion with the class attributed with the fully-described class name. For example:

{@code
<changeBounds>
<pathMotion class="my.app.transition.MyPathMotion"/>
</changeBounds>
            }

or

{@code
<changeBounds>
<arcMotion android:minimumHorizontalAngle="15"
                android:minimumVerticalAngle="0" android:maximumAngle="90"/>
</changeBounds>
            }

Java documentation for android.transition.Transition.setPathMotion(android.transition.PathMotion).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also