Skip to content

Commit

Permalink
Merge pull request #157 from Team-Sopetit/feature/#155-hotfix-happyro…
Browse files Browse the repository at this point in the history
…utine-card-resize

#155 [hotfix] 행복 루틴 카드 사이즈 조정
  • Loading branch information
stellar-halo authored Feb 3, 2024
2 parents 93b5ccb + 8b2ae49 commit 62738bc
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class HappyDetailCardPagerAdapter() :
tvHappyRoutineAddCardDetailTitleBack.text =
data.content
tvHappyRoutineAddCardDetailContentBack.text =
data.detailContent
data.detailContent.replace(" ", "\u00A0")
tvHappyRoutineAddCardDetailTimeBack.text =
data.timeTaken
tvHappyRoutineAddCardDetailPlaceBack.text = data.place
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/layout/activity_happy_add_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,19 @@
android:id="@+id/vp_happy_add_detail_card"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="24dp"
android:layout_marginBottom="91dp"
android:clipChildren="false"
android:clipToPadding="false"
app:layout_constraintBottom_toTopOf="@id/btn_happy_detail_add"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_happy_add_detail_subtitle"
app:layout_constraintVertical_bias="0" />
app:layout_constraintTop_toBottomOf="@id/tv_happy_add_detail_subtitle" />

<com.tbuonomo.viewpagerdotsindicator.DotsIndicator
android:id="@+id/di_happy_add_detail_indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:clickable="false"
android:foregroundGravity="center"
app:dotsColor="@color/gray200"
Expand Down
24 changes: 15 additions & 9 deletions app/src/main/res/layout/item_happy_add_detail_card.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:paddingHorizontal="40dp">

<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_happy_routine_add_card"
android:layout_width="280dp"
android:layout_height="398dp"
android:visibility="visible"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@drawable/shape_white_fill_gray100_stroke_20_rect"
android:src="@color/background"
android:visibility="invisible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintDimensionRatio="0.7"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
Expand All @@ -26,6 +29,8 @@
android:id="@+id/iv_happy_routine_add_card"
android:layout_width="0dp"
android:layout_height="match_parent"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand Down Expand Up @@ -54,8 +59,8 @@
android:layout_marginEnd="22dp"
android:layout_marginBottom="22dp"
android:src="@drawable/ic_magnify"
app:layout_constraintBottom_toBottomOf="@id/iv_happy_routine_add_card"
app:layout_constraintEnd_toEndOf="@id/iv_happy_routine_add_card" />
app:layout_constraintBottom_toBottomOf="@id/cl_happy_routine_add_card"
app:layout_constraintEnd_toEndOf="@id/cl_happy_routine_add_card" />

</androidx.constraintlayout.widget.ConstraintLayout>

Expand All @@ -64,7 +69,7 @@
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@drawable/shape_white_fill_gray100_stroke_20_rect"
android:visibility="invisible"
android:visibility="visible"
app:layout_constraintBottom_toBottomOf="@id/cl_happy_routine_add_card"
app:layout_constraintEnd_toEndOf="@id/cl_happy_routine_add_card"
app:layout_constraintStart_toStartOf="@id/cl_happy_routine_add_card"
Expand All @@ -91,7 +96,7 @@
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginStart="18dp"
android:layout_marginTop="145dp"
android:layout_marginTop="140dp"
android:layout_marginEnd="18dp"
app:dividerColor="@color/gray100"
app:layout_constraintEnd_toEndOf="parent"
Expand All @@ -107,6 +112,7 @@
android:layout_marginTop="17dp"
android:layout_marginEnd="20dp"
android:breakStrategy="simple"
android:includeFontPadding="false"
android:lineSpacingMultiplier="1.3"
android:textColor="@color/gray400"
app:layout_constraintEnd_toEndOf="parent"
Expand Down Expand Up @@ -144,7 +150,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginBottom="65dp"
android:layout_marginBottom="45dp"
android:src="@drawable/ic_place"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent" />
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/raw/panda_hello.json

Large diffs are not rendered by default.

0 comments on commit 62738bc

Please sign in to comment.