Skip to content

Commit 2a3f2f6

Browse files
committed
💄 홍보하기 글 레이아웃 추가
1 parent 8ff49ac commit 2a3f2f6

File tree

2 files changed

+87
-0
lines changed

2 files changed

+87
-0
lines changed
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<layout xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:app="http://schemas.android.com/apk/res-auto"
4+
xmlns:tools="http://schemas.android.com/tools">
5+
6+
<data>
7+
8+
<variable
9+
name="recruitPost"
10+
type="com.whyranoid.domain.model.RecruitPost" />
11+
</data>
12+
13+
<androidx.constraintlayout.widget.ConstraintLayout
14+
android:layout_width="match_parent"
15+
android:layout_height="wrap_content">
16+
17+
<ImageView
18+
android:id="@+id/iv_leader_profile"
19+
loadImage="@{recruitPost.author.profileUrl}"
20+
android:layout_width="50dp"
21+
android:layout_height="50dp"
22+
android:layout_margin="16dp"
23+
app:layout_constraintStart_toStartOf="parent"
24+
app:layout_constraintTop_toTopOf="parent" />
25+
26+
<TextView
27+
android:id="@+id/tv_leader_name"
28+
android:layout_width="wrap_content"
29+
android:layout_height="wrap_content"
30+
android:layout_margin="16dp"
31+
android:text="@{recruitPost.author.name}"
32+
app:layout_constraintStart_toEndOf="@id/iv_leader_profile"
33+
app:layout_constraintTop_toTopOf="parent"
34+
tools:text="수피치" />
35+
36+
<TextView
37+
android:id="@+id/tv_group_name"
38+
style="@style/MoGakRunText.ExtraBold"
39+
android:layout_width="0dp"
40+
android:layout_height="wrap_content"
41+
android:layout_margin="16dp"
42+
android:layout_marginTop="16dp"
43+
android:gravity="center"
44+
android:text="@{recruitPost.groupInfo.name}"
45+
app:layout_constraintEnd_toEndOf="parent"
46+
app:layout_constraintStart_toStartOf="parent"
47+
app:layout_constraintTop_toBottomOf="@id/tv_leader_name"
48+
tools:text="수피치와 함께 춤을\n출까 말까" />
49+
50+
<TextView
51+
android:id="@+id/tv_group_introduce"
52+
style="@style/MoGakRunText.Bold.Large"
53+
android:layout_width="0dp"
54+
android:layout_height="wrap_content"
55+
android:layout_margin="16dp"
56+
android:gravity="center"
57+
android:text="@{recruitPost.groupInfo.introduce}"
58+
app:layout_constraintEnd_toEndOf="parent"
59+
app:layout_constraintStart_toStartOf="parent"
60+
app:layout_constraintTop_toBottomOf="@id/tv_group_name"
61+
tools:text="우리 그룹은요\n이러쿵\n저러쿵\n이렇고요\n저렇고요" />
62+
63+
<TextView
64+
android:id="@+id/tv_rules"
65+
style="@style/MoGakRunText.Bold.Medium"
66+
android:layout_width="0dp"
67+
android:layout_height="wrap_content"
68+
android:layout_margin="16dp"
69+
android:gravity="center"
70+
android:text="@{recruitPost.groupInfo.rules.toString()}"
71+
app:layout_constraintEnd_toEndOf="parent"
72+
app:layout_constraintStart_toStartOf="parent"
73+
app:layout_constraintTop_toBottomOf="@id/tv_group_introduce"
74+
tools:text="규칙들\n이 적히게\n됩니다." />
75+
76+
<com.google.android.material.button.MaterialButton
77+
android:id="@+id/btn_join_group"
78+
android:layout_width="wrap_content"
79+
android:layout_height="wrap_content"
80+
android:layout_margin="16dp"
81+
android:text="@string/text_join_group"
82+
app:layout_constraintStart_toStartOf="parent"
83+
app:layout_constraintTop_toBottomOf="@id/tv_rules" />
84+
85+
</androidx.constraintlayout.widget.ConstraintLayout>
86+
</layout>

presentation/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,6 @@
8686
<string name="running_notification_title">달려~ 달려~</string>
8787
<string name="running_channel_name">활동 추적</string>
8888
<string name="running_channel_description">달리기 활동을 추적하는 알림 채널입니다.</string>
89+
<string name="text_join_group">그룹 가입하기</string>
8990

9091
</resources>

0 commit comments

Comments
 (0)