Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <MotionScene xmlns:motion="http://schemas.android.com/apk/res-auto"
- xmlns:android="http://schemas.android.com/apk/res/android">
- <Transition
- motion:constraintSetStart="@id/start_layout_trainer"
- motion:constraintSetEnd="@id/end_layout_trainer"
- motion:duration="1000">
- <OnSwipe
- motion:touchAnchorId="@+id/trainerContentScrollView"
- motion:touchAnchorSide="top"
- motion:dragDirection="dragUp" />
- </Transition>
- <Transition
- android:id="@+id/transitionOnImageSwipe"
- motion:constraintSetStart="@id/start_layout_trainer"
- motion:constraintSetEnd="@id/end_layout_image_trainer"
- motion:duration="1000">
- <OnSwipe
- motion:touchAnchorId="@+id/trainerContentScrollView"
- motion:touchAnchorSide="top"
- motion:dragDirection="dragDown" />
- </Transition>
- <ConstraintSet android:id="@+id/start_layout_trainer">
- <Constraint
- android:id="@id/ivTrainerImage"
- android:layout_width="match_parent"
- android:layout_height="432dp"
- motion:layout_constraintStart_toStartOf="parent"
- motion:layout_constraintEnd_toEndOf="parent"
- motion:layout_constraintTop_toTopOf="parent" />
- <Constraint
- android:id="@id/trainerAppBar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:visibility="gone"/>
- <Constraint
- android:id="@id/ivTrainerArrowBack"
- motion:layout_constraintStart_toStartOf="parent"
- motion:layout_constraintTop_toTopOf="parent"
- android:visibility="visible"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"/>
- <Constraint
- android:id="@id/trainerContentScrollView"
- motion:layout_constraintStart_toStartOf="parent"
- motion:layout_constraintEnd_toEndOf="parent"
- motion:layout_constraintTop_toBottomOf="@id/ivTrainerImage"
- motion:layout_constraintBottom_toBottomOf="parent"
- android:fillViewport="true"
- android:layout_width="match_parent"
- android:layout_height="0dp"/>
- </ConstraintSet>
- <ConstraintSet android:id="@+id/end_layout_trainer">
- <Constraint
- android:id="@id/ivTrainerImage"
- android:layout_width="match_parent"
- android:layout_height="432dp"
- motion:layout_constraintStart_toStartOf="parent"
- motion:layout_constraintBottom_toTopOf="@id/trainerContentScrollView"/>
- <Constraint
- android:id="@id/trainerAppBar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:visibility="visible"/>
- <Constraint
- android:id="@id/ivTrainerArrowBack"
- android:visibility="gone"
- motion:layout_constraintStart_toStartOf="parent"
- motion:layout_constraintBottom_toTopOf="@id/trainerContentScrollView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"/>
- <Constraint
- android:id="@id/trainerContentScrollView"
- motion:layout_constraintStart_toStartOf="parent"
- motion:layout_constraintEnd_toEndOf="parent"
- motion:layout_constraintTop_toTopOf="parent"
- motion:layout_constraintBottom_toBottomOf="parent"
- android:fillViewport="true"
- android:layout_width="match_parent"
- android:layout_height="match_parent"/>
- </ConstraintSet>
- <ConstraintSet android:id="@+id/end_layout_image_trainer">
- <Constraint
- android:id="@id/ivTrainerImage"
- android:layout_width="600dp"
- android:layout_height="600dp"
- motion:layout_constraintStart_toStartOf="parent"
- motion:layout_constraintEnd_toEndOf="parent"
- motion:layout_constraintTop_toTopOf="parent" />
- <Constraint
- android:id="@id/trainerAppBar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:visibility="gone"/>
- <Constraint
- android:id="@id/ivTrainerArrowBack"
- motion:layout_constraintStart_toStartOf="parent"
- motion:layout_constraintTop_toTopOf="parent"
- android:layout_width="wrap_content"
- android:visibility="visible"
- android:layout_height="wrap_content"/>
- <Constraint
- android:id="@id/trainerContentScrollView"
- motion:layout_constraintStart_toStartOf="parent"
- motion:layout_constraintEnd_toEndOf="parent"
- motion:layout_constraintTop_toBottomOf="@id/ivTrainerImage"
- motion:layout_constraintBottom_toBottomOf="parent"
- android:fillViewport="true"
- android:layout_width="match_parent"
- android:layout_height="0dp"/>
- </ConstraintSet>
- </MotionScene>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement