Transition.PathMotion プロパティ

定義

2 次元に沿って補間するために使用されるアルゴリズム オブジェクトを返します。 または、2 次元補間の計算に使用するアルゴリズムを設定します。

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

プロパティ値

2 次元に沿って補間するために使用されるアルゴリズム オブジェクト。

属性

注釈

プロパティ getter のドキュメント:

2 次元に沿って補間するために使用されるアルゴリズム オブジェクトを返します。 これは通常、2 つのポイント間のビューモーションを決定するために使用されます。

XML で記述する場合は、パス モーションに入れ子になった XML タグを使用します。 組み込みのタグarcMotionのいずれか、またはpatternPathMotion完全に記述されたクラス名を持つ 属性を使用classして を使用pathMotionするカスタム PathMotion にすることができます。 次に例を示します。

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

or

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

の Java ドキュメント android.transition.Transition.getPathMotion()

プロパティ セッターのドキュメント:

2 次元補間の計算に使用するアルゴリズムを設定します。

ビューの移動などの android.transition.ChangeBounds 画面切り替え (通常は開始位置と終了位置の間の直線パス)。 これらのモーションを曲線内で移動させたいアプリケーションでは、PathMotion を拡張して を実装 android.transition.PathMotion#getPath(float, float, float, float)することで、ビューが 2 次元で補間される方法を変更できます。

XML で記述する場合は、パス モーションに入れ子になった XML タグを使用します。 組み込みのタグarcMotionのいずれか、またはpatternPathMotion完全に記述されたクラス名を持つ 属性を使用classして を使用pathMotionするカスタム PathMotion にすることができます。 次に例を示します。

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

or

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

の Java ドキュメント android.transition.Transition.setPathMotion(android.transition.PathMotion)

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

こちらもご覧ください