LibreTube/app/src/main/res/xml/player_scene.xml

103 lines
4.5 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2022-06-03 22:19:48 +05:30
<MotionScene xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:motion="http://schemas.android.com/apk/res-auto">
<Transition
2021-12-16 03:54:40 +05:30
android:id="@+id/yt_transition"
motion:constraintSetEnd="@+id/end"
motion:constraintSetStart="@id/start"
motion:duration="10"
2022-06-03 22:19:48 +05:30
motion:motionInterpolator="easeInOut">
<KeyFrameSet>
<KeyAttribute
2022-06-27 22:47:52 +05:30
android:alpha="0"
2022-06-03 22:19:48 +05:30
motion:framePosition="90"
2022-06-27 22:47:52 +05:30
motion:motionTarget="@+id/close_imageView" />
2022-06-03 22:19:48 +05:30
<KeyAttribute
2022-06-27 22:47:52 +05:30
android:alpha="0"
2022-06-03 22:19:48 +05:30
motion:framePosition="90"
2022-06-27 22:47:52 +05:30
motion:motionTarget="@+id/play_imageView" />
2022-06-03 22:19:48 +05:30
<KeyAttribute
2022-06-27 22:47:52 +05:30
android:alpha="0"
2022-06-03 22:19:48 +05:30
motion:framePosition="95"
2022-06-27 22:47:52 +05:30
motion:motionTarget="@+id/title_textView" />
2022-06-03 22:19:48 +05:30
</KeyFrameSet>
<OnSwipe
motion:dragDirection="dragDown"
2022-06-27 22:47:52 +05:30
motion:dragScale="6"
motion:maxAcceleration="40"
2022-06-27 22:47:52 +05:30
motion:touchAnchorId="@+id/main_container"
motion:touchAnchorSide="bottom" />
</Transition>
<ConstraintSet android:id="@+id/start">
2021-12-15 15:54:12 +05:30
<Constraint
android:id="@+id/player"
android:layout_width="match_parent"
android:layout_height="0dp"
motion:layout_constraintBottom_toBottomOf="@id/main_container"
2022-06-27 22:47:52 +05:30
motion:layout_constraintStart_toStartOf="@id/main_container"
motion:layout_constraintTop_toTopOf="@id/main_container" />
2022-07-19 18:29:16 +05:30
<Constraint android:id="@+id/doubleTapOverlay" />
</ConstraintSet>
<ConstraintSet android:id="@+id/end">
<Constraint
android:id="@+id/scrollView2"
android:layout_width="0dp"
android:layout_height="1dp"
motion:layout_constraintBottom_toBottomOf="parent"
2022-06-27 22:47:52 +05:30
motion:layout_constraintEnd_toEndOf="parent"
motion:layout_constraintHorizontal_bias="0.5"
motion:layout_constraintStart_toStartOf="parent"
2022-06-27 22:47:52 +05:30
motion:layout_constraintTop_toBottomOf="@+id/main_container"
motion:layout_constraintVertical_bias="1.0" />
<Constraint
android:id="@+id/main_container"
android:layout_width="match_parent"
android:layout_height="54dp"
2022-06-27 22:47:52 +05:30
motion:layout_constraintBottom_toBottomOf="parent"
motion:layout_constraintEnd_toEndOf="parent"
motion:layout_constraintHorizontal_bias="0.5"
motion:layout_constraintStart_toStartOf="parent"
2022-06-27 22:47:52 +05:30
motion:layout_constraintTop_toTopOf="parent"
motion:layout_constraintVertical_bias="1.0" />
<Constraint
android:id="@+id/player"
android:layout_width="100dp"
android:layout_height="0dp"
motion:layout_constraintBottom_toBottomOf="@id/main_container"
2022-06-27 22:47:52 +05:30
motion:layout_constraintStart_toStartOf="@id/main_container"
motion:layout_constraintTop_toTopOf="@id/main_container" />
<Constraint
android:id="@+id/close_imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:alpha="1"
2022-06-27 22:47:52 +05:30
android:visibility="visible"
motion:layout_constraintBottom_toBottomOf="@id/main_container"
motion:layout_constraintEnd_toEndOf="@id/main_container"
motion:layout_constraintTop_toTopOf="@id/main_container" />
<Constraint
android:id="@+id/play_imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:alpha="1"
2022-06-27 22:47:52 +05:30
android:visibility="visible"
motion:layout_constraintBottom_toBottomOf="@+id/close_imageView"
motion:layout_constraintEnd_toStartOf="@+id/close_imageView"
motion:layout_constraintTop_toTopOf="@+id/close_imageView" />
<Constraint
android:id="@+id/title_textView"
android:layout_width="0dp"
android:layout_height="wrap_content"
2022-12-08 23:11:10 +05:30
android:layout_marginHorizontal="8dp"
android:alpha="1"
2022-06-27 22:47:52 +05:30
android:visibility="visible"
motion:layout_constraintBottom_toBottomOf="@+id/play_imageView"
motion:layout_constraintEnd_toStartOf="@+id/play_imageView"
motion:layout_constraintStart_toEndOf="@+id/player"
motion:layout_constraintTop_toTopOf="@+id/play_imageView" />
</ConstraintSet>
</MotionScene>