Skip to content

Commit

Permalink
Modify Entire UI
Browse files Browse the repository at this point in the history
  • Loading branch information
kkjsw17 committed Jun 20, 2021
1 parent 2470ac4 commit a3ef5ac
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
14 changes: 8 additions & 6 deletions app/src/main/res/layout/item_article.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
android:layout_height="match_parent"
android:layout_weight="1"
android:padding="6dp"
android:scaleType="center"
android:scaleType="centerCrop"
android:src="@drawable/profile_image"
app:srcCompat="@drawable/ic_launcher_foreground" />

Expand All @@ -94,10 +94,11 @@
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:gravity="center"
android:gravity="center|right"
android:layout_marginTop="4dp"
android:text="1"
android:textSize="40sp" />
android:textSize="32sp"
tools:ignore="RtlHardcoded" />

<TextView
android:id="@+id/slash"
Expand All @@ -107,17 +108,18 @@
android:gravity="center"
android:layout_marginTop="4dp"
android:text="/"
android:textSize="40sp" />
android:textSize="32sp" />

<TextView
android:id="@+id/recruitmentNumberTextView"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:gravity="center"
android:gravity="center|left"
android:layout_marginTop="4dp"
android:text="4"
android:textSize="40sp" />
android:textSize="32sp"
tools:ignore="RtlHardcoded" />

</LinearLayout>

Expand Down
19 changes: 10 additions & 9 deletions app/src/main/res/layout/item_card.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
<FrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="3"
android:layout_marginBottom="14dp">
android:layout_weight="3">

<ImageView
android:id="@+id/cardThumbnailBackground"
Expand All @@ -36,7 +35,7 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_marginTop="10dp"
android:layout_marginTop="15dp"
android:paddingEnd="20dp"
android:orientation="horizontal"
tools:ignore="NestedWeights,RtlSymmetry">
Expand All @@ -53,7 +52,7 @@
android:layout_weight="1"
android:gravity="center"
android:text="1"
android:textSize="32sp" />
android:textSize="28sp" />

<TextView
android:id="@+id/slash"
Expand All @@ -62,7 +61,7 @@
android:layout_weight="1"
android:gravity="center"
android:text="/"
android:textSize="32sp" />
android:textSize="28sp" />

<TextView
android:id="@+id/recruitmentNumberTextView"
Expand All @@ -71,7 +70,7 @@
android:gravity="center"
android:layout_weight="1"
android:text="4"
android:textSize="32sp" />
android:textSize="28sp" />

</LinearLayout>

Expand Down Expand Up @@ -116,7 +115,9 @@
android:paddingTop="5dp"
android:hint="@string/article_title"
android:textColor="@color/black"
android:textSize="20sp" />
android:textSize="20sp"
android:ellipsize="end"
android:maxLines="1" />

</LinearLayout>

Expand Down Expand Up @@ -156,15 +157,15 @@
android:id="@+id/contentTextView"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="4"
android:layout_weight="3"
android:padding="20dp"
android:hint="@string/content" />

<LinearLayout
android:id="@+id/tagView"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.5"
android:layout_weight="2.5"
android:orientation="vertical"
android:padding="20dp" />

Expand Down

0 comments on commit a3ef5ac

Please sign in to comment.