Skip to content

Commit

Permalink
[UI] : binding set #13
Browse files Browse the repository at this point in the history
  • Loading branch information
lsakee committed Nov 24, 2023
1 parent f304bf9 commit e758496
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 48 deletions.
32 changes: 26 additions & 6 deletions app/src/main/res/layout/activity_explore_meeting.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<layout>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">

<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">


<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingHorizontal="15dp"
Expand Down Expand Up @@ -157,7 +162,7 @@
android:id="@+id/tv_meeting_highlight"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="새로 생겼어요"
android:text="모임 둘러보기"
android:textAppearance="@style/TextAppearance.AppleSDGothic.TitleBd"
android:textColor="@color/carrot_black"
app:layout_constraintStart_toStartOf="parent"
Expand All @@ -167,12 +172,25 @@
android:id="@+id/rv_meeting_highlight"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:orientation="horizontal"
android:paddingVertical="4dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_meeting_highlight" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="13dp"
android:layout_marginTop="37dp"
android:paddingVertical="10dp"
android:text="원하는 모임이 없나요?"
android:textAppearance="@style/TextAppearance.AppleSDGothic.BodyNumber"
android:textColor="@color/carrot_black"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/rv_meeting_highlight" />

<Button
android:id="@+id/btn_sample"
android:layout_width="wrap_content"
Expand All @@ -182,4 +200,6 @@
app:layout_constraintStart_toStartOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

</androidx.core.widget.NestedScrollView>
</layout>
1 change: 0 additions & 1 deletion app/src/main/res/layout/item_fragment_meeting.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:background="@drawable/shape_grey200_fill_14_rect"
android:drawableEnd="@drawable/ic_down"
android:paddingHorizontal="10dp"
android:paddingVertical="5dp"
android:text="가까운 동네만"
Expand Down
15 changes: 9 additions & 6 deletions app/src/main/res/layout/item_meeting.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
xmlns:tools="http://schemas.android.com/tools">

<data>

<variable
name="meeting"
type="org.sopt.carrot.presentation.model.Meeting" />
</data>

<androidx.constraintlayout.widget.ConstraintLayout
Expand All @@ -25,22 +27,23 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/ic_launcher_background" />
imageUrl="@{meeting.clubImg}"/>
</androidx.cardview.widget.CardView>

<TextView
android:id="@+id/tv_meeting_list_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="13dp"
android:text="새벽배드민턴 용인수지죽전아르피아"
android:text="@{meeting.clubName}"
android:textAppearance="@style/TextAppearance.AppleSDGothic.Subtitle"
app:layout_constraintStart_toEndOf="@id/cv_meeting_iv"
app:layout_constraintTop_toTopOf="@id/cv_meeting_iv" />

<ImageView
android:id="@+id/iv_meeting_user_list"
android:layout_width="wrap_content"
imageUrl="@{meeting.participantsImg}"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="@id/tv_meeting_list_title"
app:layout_constraintTop_toBottomOf="@id/tv_meeting_list_title" />
Expand All @@ -49,7 +52,7 @@
android:id="@+id/tv_meeting_list_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="103명 "
android:text="111명 "
android:textAppearance="@style/TextAppearance.AppleSDGothic.Body"
android:textColor="@color/carrot_grey500"
app:layout_constraintBottom_toTopOf="@+id/tv_meeting_place"
Expand All @@ -73,7 +76,7 @@
android:layout_height="wrap_content"
android:background="@drawable/shape_grey100_fill_3_rect"
android:drawableStart="@drawable/ic_location"
android:text="신봉동"
android:text="@{meeting.town}"
android:textAppearance="@style/TextAppearance.AppleSDGothic.Tag"
android:textColor="@color/carrot_grey500"
app:layout_constraintStart_toEndOf="@id/iv_meeting_user_list"
Expand All @@ -85,7 +88,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:background="@drawable/shape_grey100_fill_3_rect"
android:text="운동"
android:text="@{meeting.clubTagContent}"
android:textAppearance="@style/TextAppearance.AppleSDGothic.Tag"
android:textColor="@color/carrot_grey500"
app:layout_constraintStart_toEndOf="@id/tv_meeting_place"
Expand Down
67 changes: 38 additions & 29 deletions app/src/main/res/layout/item_meeting_highlight.xml
Original file line number Diff line number Diff line change
@@ -1,34 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingEnd="8dp">
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">

<androidx.cardview.widget.CardView
android:id="@+id/cv_meeting_iv"
android:layout_width="104dp"
android:layout_height="158dp"
app:cardCornerRadius="9dp"
app:cardElevation="0dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<data>

<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/ic_launcher_background" />
</androidx.cardview.widget.CardView>

<TextView
<variable
name="highlight"
type="org.sopt.carrot.presentation.model.MeetingHighlight" />
</data>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="11dp"
android:text="러닝크루"
android:layout_marginBottom="7dp"
android:textAppearance="@style/TextAppearance.AppleSDGothic.Body"
android:textColor="@color/carrot_white"
app:layout_constraintBottom_toBottomOf="@id/cv_meeting_iv"
app:layout_constraintStart_toStartOf="@+id/cv_meeting_iv" />
</androidx.constraintlayout.widget.ConstraintLayout>
android:paddingEnd="8dp">

<androidx.cardview.widget.CardView
android:id="@+id/cv_meeting_iv"
android:layout_width="104dp"
android:layout_height="158dp"
app:cardCornerRadius="9dp"
app:cardElevation="0dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">

<ImageView
imageUrl="@{highlight.img}"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop" />
</androidx.cardview.widget.CardView>

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="11dp"
android:layout_marginBottom="7dp"
android:text="@{highlight.title}"
android:textAppearance="@style/TextAppearance.AppleSDGothic.Body"
android:textColor="@color/carrot_white"
app:layout_constraintBottom_toBottomOf="@id/cv_meeting_iv"
app:layout_constraintStart_toStartOf="@+id/cv_meeting_iv" />
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
14 changes: 8 additions & 6 deletions app/src/main/res/layout/item_meeting_new.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
xmlns:tools="http://schemas.android.com/tools">

<data>

<variable
name="newmeeting"
type="org.sopt.carrot.presentation.model.NewMeeting" />
</data>

<androidx.constraintlayout.widget.ConstraintLayout
Expand All @@ -25,15 +27,15 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/ic_launcher_background" />
imageUrl="@{newmeeting.img}"/>
</androidx.cardview.widget.CardView>

<TextView
android:id="@+id/tv_meeting_list_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="13dp"
android:text="새벽배드민턴 용인수지죽전아르피아"
android:text="@{newmeeting.title}"
android:textAppearance="@style/TextAppearance.AppleSDGothic.Subtitle"
app:layout_constraintStart_toEndOf="@id/cv_meeting_iv"
app:layout_constraintTop_toTopOf="@id/cv_meeting_iv" />
Expand All @@ -42,7 +44,7 @@
android:id="@+id/tv_meeting_list_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="다양한 기법으로 투자하는 관점"
android:text="@{newmeeting.subMsg}"
android:textAppearance="@style/TextAppearance.AppleSDGothic.Body"
android:textColor="@color/carrot_grey500"
app:layout_constraintBottom_toTopOf="@+id/tv_meeting_place"
Expand All @@ -55,7 +57,7 @@
android:layout_height="wrap_content"
android:background="@drawable/shape_grey100_fill_3_rect"
android:drawableStart="@drawable/ic_location"
android:text="신봉동"
android:text="@{newmeeting.place}"
android:textAppearance="@style/TextAppearance.AppleSDGothic.Tag"
android:textColor="@color/carrot_grey500"
app:layout_constraintStart_toStartOf="@id/tv_meeting_list_title"
Expand All @@ -67,7 +69,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:background="@drawable/shape_grey100_fill_3_rect"
android:text="운동"
android:text="@{newmeeting.subject}"
android:textAppearance="@style/TextAppearance.AppleSDGothic.Tag"
android:textColor="@color/carrot_grey500"
app:layout_constraintStart_toEndOf="@id/tv_meeting_place"
Expand Down

0 comments on commit e758496

Please sign in to comment.