tmap/res/xml/main_ad_scene.xml
2022-06-10 21:38:30 +09:00

36 lines
5.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<MotionScene
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:motion="http://schemas.android.com/apk/res-auto">
<Transition motion:constraintSetEnd="@id/ad_end" motion:constraintSetStart="@id/ad_start" motion:duration="700" motion:motionInterpolator="cubic(0.65, 0, 0.35, 1)">
<KeyFrameSet>
<KeyPosition motion:framePosition="85" motion:keyPositionType="pathRelative" motion:motionTarget="@id/ad_image_view" motion:percentX="1.0" />
<KeyPosition motion:framePosition="85" motion:keyPositionType="pathRelative" motion:motionTarget="@id/ad_button_image_cover_view" motion:percentX="1.0" />
<KeyPosition motion:framePosition="85" motion:keyPositionType="pathRelative" motion:motionTarget="@id/ad_button" motion:percentX="1.0" />
</KeyFrameSet>
<KeyFrameSet>
<KeyAttribute android:alpha="0.0" motion:framePosition="28" motion:motionTarget="@id/ad_button_image_view" />
</KeyFrameSet>
</Transition>
<Transition motion:constraintSetEnd="@id/ad_start" motion:constraintSetStart="@id/ad_init" motion:duration="700" />
<ConstraintSet android:id="@id/ad_start">
<Constraint android:id="@id/ad_button_image_view" android:layout_width="wrap_content" android:layout_height="@dimen/tmap_60dp" android:alpha="1.0" motion:layout_constraintBottom_toBottomOf="parent" motion:layout_constraintEnd_toEndOf="parent" />
<Constraint android:id="@id/ad_button_image_cover_view" android:background="@drawable/main_ad_background" android:layout_width="fill_parent" android:layout_height="@dimen/tmap_60dp" android:alpha="1.0" android:layout_marginEnd="@dimen/tmap_50dp" motion:layout_constraintBottom_toBottomOf="parent" motion:layout_constraintEnd_toEndOf="@id/ad_button" motion:layout_constraintStart_toStartOf="parent" />
<Constraint android:id="@id/ad_image_view" android:layout_width="fill_parent" android:layout_height="@dimen/tmap_60dp" android:alpha="1.0" motion:layout_constraintBottom_toBottomOf="parent" motion:layout_constraintEnd_toEndOf="parent" motion:layout_constraintStart_toStartOf="parent" />
<Constraint android:id="@id/ad_button" android:layout_width="@dimen/tmap_69dp" android:layout_height="@dimen/tmap_60dp" android:alpha="1.0" motion:layout_constraintBottom_toBottomOf="parent" motion:layout_constraintEnd_toEndOf="parent" />
<Constraint android:id="@id/ad_video_view" android:layout_width="fill_parent" android:layout_height="@dimen/tmap_1dp" android:alpha="0.0" motion:layout_constraintBottom_toBottomOf="parent" motion:layout_constraintStart_toEndOf="parent" />
</ConstraintSet>
<ConstraintSet android:id="@id/ad_end">
<Constraint android:id="@id/ad_button_image_view" android:layout_width="wrap_content" android:layout_height="@dimen/tmap_60dp" android:alpha="0.0" motion:layout_constraintBottom_toBottomOf="parent" motion:layout_constraintEnd_toStartOf="parent" />
<Constraint android:id="@id/ad_button_image_cover_view" android:background="@drawable/main_ad_background" android:layout_width="wrap_content" android:layout_height="@dimen/tmap_60dp" android:alpha="0.0" android:layout_marginEnd="@dimen/tmap_50dp" motion:layout_constraintBottom_toBottomOf="parent" motion:layout_constraintEnd_toStartOf="parent" />
<Constraint android:id="@id/ad_image_view" android:layout_width="wrap_content" android:layout_height="@dimen/tmap_60dp" android:alpha="0.0" motion:layout_constraintBottom_toBottomOf="parent" motion:layout_constraintEnd_toStartOf="parent" />
<Constraint android:id="@id/ad_button" android:layout_width="@dimen/tmap_69dp" android:layout_height="@dimen/tmap_60dp" android:alpha="0.0" motion:layout_constraintBottom_toBottomOf="parent" motion:layout_constraintEnd_toStartOf="parent" />
<Constraint android:id="@id/ad_video_view" android:layout_width="fill_parent" android:layout_height="@dimen/tmap_148dp" android:alpha="1.0" motion:layout_constraintBottom_toBottomOf="parent" motion:layout_constraintEnd_toEndOf="parent" motion:layout_constraintStart_toStartOf="parent" />
</ConstraintSet>
<ConstraintSet android:id="@id/ad_init">
<Constraint android:id="@id/ad_button_image_view" android:layout_width="fill_parent" android:layout_height="@dimen/tmap_60dp" android:alpha="1.0" motion:layout_constraintBottom_toBottomOf="parent" motion:layout_constraintEnd_toEndOf="parent" />
<Constraint android:id="@id/ad_button_image_cover_view" android:background="@drawable/main_ad_background" android:layout_width="fill_parent" android:layout_height="@dimen/tmap_60dp" android:alpha="1.0" android:layout_marginEnd="@dimen/tmap_0dp" motion:layout_constraintBottom_toBottomOf="parent" motion:layout_constraintEnd_toEndOf="@id/ad_button" motion:layout_constraintStart_toStartOf="parent" />
<Constraint android:id="@id/ad_image_view" android:layout_width="fill_parent" android:layout_height="@dimen/tmap_60dp" android:alpha="1.0" motion:layout_constraintBottom_toBottomOf="parent" motion:layout_constraintEnd_toStartOf="parent" motion:layout_constraintStart_toStartOf="parent" />
<Constraint android:id="@id/ad_button" android:layout_width="@dimen/tmap_69dp" android:layout_height="@dimen/tmap_60dp" android:alpha="1.0" motion:layout_constraintBottom_toBottomOf="parent" motion:layout_constraintEnd_toEndOf="parent" />
<Constraint android:id="@id/ad_video_view" android:layout_width="fill_parent" android:layout_height="@dimen/tmap_0dp" android:alpha="0.0" motion:layout_constraintBottom_toBottomOf="parent" motion:layout_constraintStart_toEndOf="parent" />
</ConstraintSet>
</MotionScene>