Skip to content

Commit

Permalink
Merge pull request #106 from Team-Sopetit/feature/#103-routine-achiev…
Browse files Browse the repository at this point in the history
…e-image-change

#103 [fix] 루틴 달성 완료 뷰 qa
  • Loading branch information
minemi00 authored Jan 18, 2024
2 parents 7f54302 + 65d21ba commit 6012071
Show file tree
Hide file tree
Showing 11 changed files with 872 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ class DailyRoutineCompleteActivity : RoutineCompleteActivity(Cotton.DAILY) {

private fun setDailyRoutineImage() {
val bearDrawableMap = mapOf(
BROWN to R.drawable.ic_bear_handsup_brown,
GRAY to R.drawable.ic_bear_handsup_gray,
RED to R.drawable.ic_bear_handsup_red,
WHITE to R.drawable.ic_bear_handsup_panda
BROWN to R.drawable.ic_daily_complete_brown,
GRAY to R.drawable.ic_daily_complete_gray,
RED to R.drawable.ic_daily_complete_red,
WHITE to R.drawable.ic_daily_complete_panda
)
val resourceId =
bearDrawableMap[viewModel.getBearType()] ?: R.drawable.ic_bear_handsup_brown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ class HappyRoutineCompleteActivity : RoutineCompleteActivity(Cotton.HAPPINESS) {

private fun setHappyRoutineImage() {
val bearDrawableMap = mapOf(
BROWN to R.drawable.ic_bear_happy_complete_brown,
GRAY to R.drawable.ic_bear_happy_complete_gray,
RED to R.drawable.ic_bear_happy_complete_red,
WHITE to R.drawable.ic_bear_happy_complete_panda
BROWN to R.drawable.ic_happy_complete_brown,
GRAY to R.drawable.ic_happy_complete_gray,
RED to R.drawable.ic_happy_complete_red,
WHITE to R.drawable.ic_happy_complete_panda
)
val resourceId =
bearDrawableMap[viewModel.getBearType()] ?: R.drawable.ic_bear_handsup_brown
Expand Down
80 changes: 80 additions & 0 deletions app/src/main/res/drawable/ic_daily_complete_brown.xml

Large diffs are not rendered by default.

83 changes: 83 additions & 0 deletions app/src/main/res/drawable/ic_daily_complete_gray.xml

Large diffs are not rendered by default.

98 changes: 98 additions & 0 deletions app/src/main/res/drawable/ic_daily_complete_panda.xml

Large diffs are not rendered by default.

119 changes: 119 additions & 0 deletions app/src/main/res/drawable/ic_daily_complete_red.xml

Large diffs are not rendered by default.

87 changes: 87 additions & 0 deletions app/src/main/res/drawable/ic_happy_complete_brown.xml

Large diffs are not rendered by default.

153 changes: 153 additions & 0 deletions app/src/main/res/drawable/ic_happy_complete_gray.xml

Large diffs are not rendered by default.

101 changes: 101 additions & 0 deletions app/src/main/res/drawable/ic_happy_complete_panda.xml

Large diffs are not rendered by default.

142 changes: 142 additions & 0 deletions app/src/main/res/drawable/ic_happy_complete_red.xml

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions app/src/main/res/layout/activity_routine_complete.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,9 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginHorizontal="36dp"
android:layout_marginTop="-230dp"
app:layout_constraintDimensionRatio="1:0.94"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="parent" />
app:layout_constraintBottom_toBottomOf="parent" />

<com.airbnb.lottie.LottieAnimationView
android:id="@+id/lottie_routine_complete"
Expand Down

0 comments on commit 6012071

Please sign in to comment.