1

1 つのアニメーションのように見せるために、モーション レイアウトでトランジションを次々と再生するのはいかがですか。キーフレームを使用して 2 つの constaintset 間の中間状態を作成することもできますが、それらにも制限があり、必要なすべてのプロパティを変更することはできません。

    <Transition

        app:constraintSetEnd="@layout/simple_start"
        app:constraintSetStart="@layout/simple_middle"

        >
        <OnSwipe
            app:dragDirection="dragUp"
            app:touchAnchorId="@id/scrollable"
            app:touchAnchorSide="top" />

    </Transition>
    <Transition

        app:constraintSetEnd="@layout/simple_middle"
        app:constraintSetStart="@layout/simple_end"

        >
        <OnSwipe
            app:dragDirection="dragUp"
            app:touchAnchorId="@id/scrollable"
            app:touchAnchorSide="top" />

    </Transition>

</MotionScene>
4

2 に答える 2