Skip to content

Commit

Permalink
design: 체중 기록 조회 view -> cardview로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hxeyexn committed Nov 8, 2023
1 parent 0631641 commit 6a2d284
Showing 1 changed file with 56 additions and 48 deletions.
104 changes: 56 additions & 48 deletions app/src/main/res/layout/fragment_excreta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="32dp"
android:layout_marginTop="32dp"
android:layout_marginTop="46dp"
android:text="초코님의 기록"
android:textAppearance="@style/Typography.Title2.SemiBold"
android:textColor="@color/black"
Expand Down Expand Up @@ -70,60 +70,68 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/textview_excreta_name" />

<View
android:id="@+id/view_excreta_record"
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="13dp"
android:background="@drawable/all_rect_r15"
android:layout_height="wrap_content"
android:layout_marginHorizontal="8dp"
android:layout_marginVertical="5dp"
app:cardCornerRadius="15dp"
app:cardUseCompatPadding="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/textview_excreta_name" />
app:layout_constraintTop_toBottomOf="@id/textview_excreta_name">

<TextView
android:id="@+id/textview_excreta_numberfeces"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginTop="16dp"
android:background="@drawable/all_rect_r5"
android:backgroundTint="@color/main1"
android:gravity="center"
android:padding="8dp"
android:text="대변 1회"
android:textAppearance="@style/Typography.Body1.Medium"
android:textColor="@color/main4"
app:layout_constraintStart_toStartOf="@id/view_excreta_record"
app:layout_constraintTop_toTopOf="@id/view_excreta_record" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">

<TextView
android:id="@+id/textview_excreta_numberurine"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:background="@drawable/all_rect_r5"
android:backgroundTint="@color/sub2"
android:gravity="center"
android:padding="8dp"
android:text="소변 1회"
android:textAppearance="@style/Typography.Body1.Medium"
android:textColor="@color/sub3"
app:layout_constraintStart_toEndOf="@id/textview_excreta_numberfeces"
app:layout_constraintTop_toTopOf="@id/textview_excreta_numberfeces" />
<TextView
android:id="@+id/textview_excreta_numberfeces"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginTop="16dp"
android:background="@drawable/all_rect_r5"
android:backgroundTint="@color/main1"
android:gravity="center"
android:padding="8dp"
android:text="대변 1회"
android:textAppearance="@style/Typography.Body1.Medium"
android:textColor="@color/main4"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<androidx.recyclerview.widget.RecyclerView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="24dp"
android:layout_marginBottom="32dp"
android:nestedScrollingEnabled="false"
app:layout_constraintBottom_toBottomOf="@id/view_excreta_record"
app:layout_constraintEnd_toEndOf="@id/view_excreta_record"
app:layout_constraintStart_toStartOf="@id/view_excreta_record"
app:layout_constraintTop_toBottomOf="@id/textview_excreta_numberfeces" />
<TextView
android:id="@+id/textview_excreta_numberurine"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:background="@drawable/all_rect_r5"
android:backgroundTint="@color/sub2"
android:gravity="center"
android:padding="8dp"
android:text="소변 1회"
android:textAppearance="@style/Typography.Body1.Medium"
android:textColor="@color/sub3"
app:layout_constraintStart_toEndOf="@id/textview_excreta_numberfeces"
app:layout_constraintTop_toTopOf="@id/textview_excreta_numberfeces" />

<androidx.recyclerview.widget.RecyclerView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="24dp"
android:layout_marginBottom="32dp"
android:nestedScrollingEnabled="false"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/textview_excreta_numberfeces" />

</androidx.constraintlayout.widget.ConstraintLayout>

</androidx.cardview.widget.CardView>

</androidx.constraintlayout.widget.ConstraintLayout>

Expand Down

1 comment on commit 6a2d284

@hxeyexn
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

커밋 메시지 오류 : 체중 기록 조회 view가 아니라 대소변 기록 조회 view를 cardview로 수정

Please sign in to comment.