Skip to content

Commit

Permalink
[FEAT/#22] 화면 이동 애니메이션 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchbreeze committed May 26, 2024
1 parent c4d4c5b commit 9a28348
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 2 deletions.
7 changes: 7 additions & 0 deletions presentation/src/main/res/anim/slide_left_exit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<translate
xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="300"
android:fromXDelta="0%"
android:interpolator="@android:anim/decelerate_interpolator"
android:toXDelta="-100%" />
7 changes: 7 additions & 0 deletions presentation/src/main/res/anim/slide_left_show.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<translate
xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="300"
android:fromXDelta="-100%"
android:interpolator="@android:anim/decelerate_interpolator"
android:toXDelta="0%" />
6 changes: 6 additions & 0 deletions presentation/src/main/res/anim/slide_right_exit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="300"
android:fromXDelta="0%"
android:interpolator="@android:anim/decelerate_interpolator"
android:toXDelta="100%" />
7 changes: 7 additions & 0 deletions presentation/src/main/res/anim/slide_right_show.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<translate
xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="300"
android:fromXDelta="100%"
android:interpolator="@android:anim/decelerate_interpolator"
android:toXDelta="0%" />
12 changes: 10 additions & 2 deletions presentation/src/main/res/navigation/navigation_create.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
android:label="DefineFragment">
<action
android:id="@+id/action_define_to_pose"
app:destination="@id/poseFragment" />
app:destination="@id/poseFragment"
app:enterAnim="@anim/slide_right_show"
app:exitAnim="@anim/slide_left_exit"
app:popEnterAnim="@anim/slide_left_show"
app:popExitAnim="@anim/slide_right_exit"/>
</fragment>

<fragment
Expand All @@ -19,7 +23,11 @@
android:label="PoseFragment">
<action
android:id="@+id/action_pose_to_selfie"
app:destination="@id/selfieFragment" />
app:destination="@id/selfieFragment"
app:enterAnim="@anim/slide_right_show"
app:exitAnim="@anim/slide_left_exit"
app:popEnterAnim="@anim/slide_left_show"
app:popExitAnim="@anim/slide_right_exit"/>
</fragment>

<fragment
Expand Down

0 comments on commit 9a28348

Please sign in to comment.