Skip to content

Commit 62738bc

Browse files
authored
Merge pull request #157 from Team-Sopetit/feature/#155-hotfix-happyroutine-card-resize
#155 [hotfix] 행복 루틴 카드 사이즈 조정
2 parents 93b5ccb + 8b2ae49 commit 62738bc

File tree

4 files changed

+20
-14
lines changed

4 files changed

+20
-14
lines changed

app/src/main/java/com/sopetit/softie/ui/happyroutine/detail/HappyDetailCardPagerAdapter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class HappyDetailCardPagerAdapter() :
3434
tvHappyRoutineAddCardDetailTitleBack.text =
3535
data.content
3636
tvHappyRoutineAddCardDetailContentBack.text =
37-
data.detailContent
37+
data.detailContent.replace(" ", "\u00A0")
3838
tvHappyRoutineAddCardDetailTimeBack.text =
3939
data.timeTaken
4040
tvHappyRoutineAddCardDetailPlaceBack.text = data.place

app/src/main/res/layout/activity_happy_add_detail.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,19 @@
6565
android:id="@+id/vp_happy_add_detail_card"
6666
android:layout_width="match_parent"
6767
android:layout_height="0dp"
68+
android:layout_marginTop="24dp"
6869
android:layout_marginBottom="91dp"
69-
android:clipChildren="false"
7070
android:clipToPadding="false"
7171
app:layout_constraintBottom_toTopOf="@id/btn_happy_detail_add"
7272
app:layout_constraintEnd_toEndOf="parent"
7373
app:layout_constraintStart_toStartOf="parent"
74-
app:layout_constraintTop_toBottomOf="@id/tv_happy_add_detail_subtitle"
75-
app:layout_constraintVertical_bias="0" />
74+
app:layout_constraintTop_toBottomOf="@id/tv_happy_add_detail_subtitle" />
7675

7776
<com.tbuonomo.viewpagerdotsindicator.DotsIndicator
7877
android:id="@+id/di_happy_add_detail_indicator"
7978
android:layout_width="wrap_content"
8079
android:layout_height="wrap_content"
80+
android:layout_marginTop="30dp"
8181
android:clickable="false"
8282
android:foregroundGravity="center"
8383
app:dotsColor="@color/gray200"

app/src/main/res/layout/item_happy_add_detail_card.xml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@
99

1010
<androidx.constraintlayout.widget.ConstraintLayout
1111
android:layout_width="match_parent"
12-
android:layout_height="match_parent">
12+
android:layout_height="match_parent"
13+
android:paddingHorizontal="40dp">
1314

1415
<androidx.constraintlayout.widget.ConstraintLayout
1516
android:id="@+id/cl_happy_routine_add_card"
16-
android:layout_width="280dp"
17-
android:layout_height="398dp"
18-
android:visibility="visible"
17+
android:layout_width="0dp"
18+
android:layout_height="0dp"
1919
android:background="@drawable/shape_white_fill_gray100_stroke_20_rect"
20+
android:src="@color/background"
21+
android:visibility="invisible"
2022
app:layout_constraintBottom_toBottomOf="parent"
23+
app:layout_constraintDimensionRatio="0.7"
2124
app:layout_constraintEnd_toEndOf="parent"
2225
app:layout_constraintStart_toStartOf="parent"
2326
app:layout_constraintTop_toTopOf="parent">
@@ -26,6 +29,8 @@
2629
android:id="@+id/iv_happy_routine_add_card"
2730
android:layout_width="0dp"
2831
android:layout_height="match_parent"
32+
android:adjustViewBounds="true"
33+
android:scaleType="centerCrop"
2934
app:layout_constraintBottom_toBottomOf="parent"
3035
app:layout_constraintEnd_toEndOf="parent"
3136
app:layout_constraintStart_toStartOf="parent"
@@ -54,8 +59,8 @@
5459
android:layout_marginEnd="22dp"
5560
android:layout_marginBottom="22dp"
5661
android:src="@drawable/ic_magnify"
57-
app:layout_constraintBottom_toBottomOf="@id/iv_happy_routine_add_card"
58-
app:layout_constraintEnd_toEndOf="@id/iv_happy_routine_add_card" />
62+
app:layout_constraintBottom_toBottomOf="@id/cl_happy_routine_add_card"
63+
app:layout_constraintEnd_toEndOf="@id/cl_happy_routine_add_card" />
5964

6065
</androidx.constraintlayout.widget.ConstraintLayout>
6166

@@ -64,7 +69,7 @@
6469
android:layout_width="0dp"
6570
android:layout_height="0dp"
6671
android:background="@drawable/shape_white_fill_gray100_stroke_20_rect"
67-
android:visibility="invisible"
72+
android:visibility="visible"
6873
app:layout_constraintBottom_toBottomOf="@id/cl_happy_routine_add_card"
6974
app:layout_constraintEnd_toEndOf="@id/cl_happy_routine_add_card"
7075
app:layout_constraintStart_toStartOf="@id/cl_happy_routine_add_card"
@@ -91,7 +96,7 @@
9196
android:layout_width="match_parent"
9297
android:layout_height="1dp"
9398
android:layout_marginStart="18dp"
94-
android:layout_marginTop="145dp"
99+
android:layout_marginTop="140dp"
95100
android:layout_marginEnd="18dp"
96101
app:dividerColor="@color/gray100"
97102
app:layout_constraintEnd_toEndOf="parent"
@@ -107,6 +112,7 @@
107112
android:layout_marginTop="17dp"
108113
android:layout_marginEnd="20dp"
109114
android:breakStrategy="simple"
115+
android:includeFontPadding="false"
110116
android:lineSpacingMultiplier="1.3"
111117
android:textColor="@color/gray400"
112118
app:layout_constraintEnd_toEndOf="parent"
@@ -144,7 +150,7 @@
144150
android:layout_width="wrap_content"
145151
android:layout_height="wrap_content"
146152
android:layout_marginStart="20dp"
147-
android:layout_marginBottom="65dp"
153+
android:layout_marginBottom="45dp"
148154
android:src="@drawable/ic_place"
149155
app:layout_constraintBottom_toBottomOf="parent"
150156
app:layout_constraintStart_toStartOf="parent" />

app/src/main/res/raw/panda_hello.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)