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
屬性值
用於二維插值的演算法物件。
- 屬性
備註
財產取得者文件:
回傳用於二維插值的演算法物件。 這通常用來判斷兩點之間的視角運動。
在 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()。
屬性設定文件:
設定用於計算二維插值的演算法。
android.transition.ChangeBounds像是移動視圖,通常是在起始位置與結束位置之間保持直線路徑。 希望這些運動在曲線中移動的應用程式,可以透過擴展 PathMotion 並實作 android.transition.PathMotion#getPath(float, float, float, float)來改變 Views 在二維中的插值方式。
在 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)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。