Skip to content

Commit

Permalink
#155 [hotfix] 고정dp가 아닌 변동 dp로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
stellar-halo committed Feb 3, 2024
1 parent 0ea5834 commit d29773d
Showing 1 changed file with 15 additions and 9 deletions.
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

0 comments on commit d29773d

Please sign in to comment.