Last active
January 19, 2019 00:34
-
-
Save Bradleycorn/3ca2c0b0f74c7a5b0304db258e015aa6 to your computer and use it in GitHub Desktop.
MotionLayout - Motion Scene
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"> | |
<ConstraintSet android:id="@+id/video_state_embedded_playing"> | |
<Constraint | |
android:id="@+id/video_player" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_margin="0dp" | |
android:elevation="0dp" | |
motion:layout_constraintEnd_toEndOf="parent" | |
motion:layout_constraintStart_toStartOf="parent" | |
motion:layout_constraintTop_toTopOf="parent" | |
android:visibility="visible" /> | |
<Constraint | |
android:id="@+id/list_tabs" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
motion:layout_constraintTop_toBottomOf="@+id/video_player" | |
android:visibility="visible" /> | |
<Constraint | |
android:id="@+id/list_view_pager" | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
motion:layout_constraintTop_toBottomOf="@id/list_tabs" | |
motion:layout_constraintBottom_toBottomOf="parent" | |
android:visibility="visible" /> | |
</ConstraintSet> | |
<ConstraintSet android:id="@+id/video_state_embedded_stopped"> | |
<Constraint | |
android:id="@+id/video_player" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
motion:layout_constraintEnd_toEndOf="parent" | |
motion:layout_constraintStart_toStartOf="parent" | |
motion:layout_constraintTop_toTopOf="parent" | |
android:visibility="gone" /> | |
<Constraint | |
android:id="@+id/list_tabs" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
motion:layout_constraintTop_toTopOf="parent" | |
android:visibility="visible" /> | |
<Constraint | |
android:id="@+id/list_view_pager" | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
motion:layout_constraintTop_toBottomOf="@id/list_tabs" | |
motion:layout_constraintBottom_toBottomOf="parent" | |
android:visibility="visible" /> | |
</ConstraintSet> | |
<ConstraintSet android:id="@+id/video_state_pip_playing"> | |
<Constraint | |
android:id="@+id/video_player" | |
android:layout_width="0dp" | |
motion:layout_constraintWidth_default="percent" | |
motion:layout_constraintWidth_percent="0.5" | |
android:layout_height="0dp" | |
android:layout_marginStart="8dp" | |
android:layout_marginBottom="8dp" | |
android:elevation="4dp" | |
motion:layout_constraintStart_toStartOf="parent" | |
motion:layout_constraintBottom_toBottomOf="parent" | |
android:visibility="visible"/> | |
<Constraint | |
android:id="@+id/list_tabs" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
motion:layout_constraintTop_toTopOf="parent" | |
android:visibility="visible" /> | |
<Constraint | |
android:id="@+id/list_view_pager" | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
motion:layout_constraintTop_toBottomOf="@id/list_tabs" | |
motion:layout_constraintBottom_toBottomOf="parent" | |
android:visibility="visible" /> | |
</ConstraintSet> | |
<ConstraintSet android:id="@+id/video_state_pip_stopped"> | |
<Constraint | |
android:id="@+id/video_player" | |
android:layout_width="0dp" | |
android:layout_height="0dp" | |
android:visibility="gone" /> | |
<Constraint | |
android:id="@+id/list_tabs" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
motion:layout_constraintTop_toTopOf="parent" | |
android:visibility="visible" /> | |
<Constraint | |
android:id="@+id/list_view_pager" | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
motion:layout_constraintTop_toBottomOf="@id/list_tabs" | |
motion:layout_constraintBottom_toBottomOf="parent" | |
android:visibility="visible" /> | |
</ConstraintSet> | |
<ConstraintSet android:id="@+id/video_state_fullscreen"> | |
<Constraint | |
android:id="@+id/video_player" | |
android:layout_width="0dp" | |
android:layout_height="0dp" | |
android:elevation="0dp" | |
android:layout_margin="0dp" | |
motion:layout_constraintStart_toStartOf="parent" | |
motion:layout_constraintEnd_toEndOf="parent" | |
motion:layout_constraintTop_toTopOf="parent" | |
motion:layout_constraintBottom_toBottomOf="parent" | |
android:visibility="visible" /> | |
<Constraint | |
android:id="@+id/list_tabs" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:visibility="gone" /> | |
<Constraint | |
android:id="@+id/list_view_pager" | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
motion:layout_constraintTop_toBottomOf="@id/list_tabs" | |
motion:layout_constraintBottom_toBottomOf="parent" | |
android:visibility="gone" /> | |
</ConstraintSet> | |
</MotionScene> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment