Skip to content

Commit

Permalink
Design: 졸업 요건/성적 사항 item width 조정 #21
Browse files Browse the repository at this point in the history
  • Loading branch information
dkyuuum committed Feb 19, 2024
1 parent e0aca97 commit b90d4ef
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 23 deletions.
47 changes: 27 additions & 20 deletions app/src/main/res/layout/fragment_grade.xml
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="9dp"
android:layout_marginBottom="13dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tv_grade_average_title"
tools:listitem="@layout/item_average_grade" />
Expand All @@ -334,7 +336,6 @@
android:id="@+id/layout_average"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginStart="9dp"
android:layout_marginTop="15dp"
android:layout_marginEnd="19dp"
android:background="@drawable/bg_stroke_gray_radius_16_5"
Expand All @@ -347,30 +348,36 @@
app:layout_constraintStart_toEndOf="@+id/recyclerView2"
app:layout_constraintTop_toBottomOf="@+id/tv_grade_average_title">

<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_average_title"
style="@style/MediumFont.13"
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="13dp"
android:text="총 평균"
android:textColor="@color/black"
app:layout_constraintBottom_toTopOf="@+id/tv_average_content"
android:orientation="vertical"
android:gravity="center"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintTop_toTopOf="parent">

<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_average_title"
style="@style/MediumFont.13"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="총\n평균"
android:gravity="center"
android:textColor="@color/black" />

<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_average_content"
style="@style/BoldFont.20"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:text="0.0"
android:textColor="@color/black" />

</androidx.appcompat.widget.LinearLayoutCompat>

<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_average_content"
style="@style/BoldFont.20"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="0.0"
android:textColor="@color/black"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tv_average_title" />

</androidx.constraintlayout.widget.ConstraintLayout>

Expand Down
10 changes: 7 additions & 3 deletions app/src/main/res/layout/item_average_grade.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,24 @@
</data>

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content">

<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/layout_1"
android:layout_width="0dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="9dp"
android:layout_marginEnd="9dp"
android:layout_marginTop="5dp"
android:background="@drawable/bg_stroke_gray_radius_16_5"
android:minWidth="88dp"
android:paddingStart="27dp"
android:paddingTop="20dp"
android:paddingEnd="27dp"
android:paddingTop="20dp"
android:paddingBottom="20dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">

Expand Down

0 comments on commit b90d4ef

Please sign in to comment.