Transition.PathMotion 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回用于沿两个维度内插的算法对象。 - 或 - 设置用于计算二维内插的算法。
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
属性值
用于沿两个维度内插的算法对象。
- 特性
注解
属性 getter 文档:
返回用于沿两个维度内插的算法对象。 这通常用于确定两个点之间的视图运动。
在 XML 中描述时,请使用路径运动的嵌套 XML 标记。 它可以是内置标记 arcMotion 之一, patternPathMotion 也可以是一个自定义 PathMotion,它与 pathMotion 具有完全描述的类名称的属性一起使用 class 。 例如:
{@code
<changeBounds>
<pathMotion class="my.app.transition.MyPathMotion"/>
</changeBounds>}
或
{@code
<changeBounds>
<arcMotion android:minimumHorizontalAngle="15"
android:minimumVerticalAngle="0"
android:maximumAngle="90"/>
</changeBounds>}
Java文档android.transition.Transition.getPathMotion()。
属性 setter 文档:
设置用于计算二维内插的算法。
切换(如 android.transition.ChangeBounds 移动视图),通常位于起始位置和结束位置之间的直线路径中。 希望让这些动作在曲线中移动的应用程序可以通过扩展 PathMotion 和实现 android.transition.PathMotion#getPath(float, float, float, float)来更改视图在两个维度中的内插方式。
在 XML 中描述时,请使用路径运动的嵌套 XML 标记。 它可以是内置标记 arcMotion 之一, patternPathMotion 也可以是一个自定义 PathMotion,它与 pathMotion 具有完全描述的类名称的属性一起使用 class 。 例如:
{@code
<changeBounds>
<pathMotion class="my.app.transition.MyPathMotion"/>
</changeBounds>
}
或
{@code
<changeBounds>
<arcMotion android:minimumHorizontalAngle="15"
android:minimumVerticalAngle="0" android:maximumAngle="90"/>
</changeBounds>
}
Java文档android.transition.Transition.setPathMotion(android.transition.PathMotion)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。