Skip to content

Commit

Permalink
#176 [ui] 루틴 메이커 item 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
pump9918 committed Jun 21, 2024
1 parent 70c458b commit f2f191c
Show file tree
Hide file tree
Showing 5 changed files with 127 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions app/src/main/res/drawable/shape_gray200_fill_4_rect.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">

<corners android:radius="4dp" />
<solid android:color="@color/gray200" />

</shape>
3 changes: 2 additions & 1 deletion app/src/main/res/layout/activity_add_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
app:layout_constraintBottom_toTopOf="@id/tv_add_list_theme_title"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_add_list_maker_recommend" />
app:layout_constraintTop_toBottomOf="@id/tv_add_list_maker_recommend"
tools:listitem="@layout/item_add_list_maker_card" />

<TextView
android:id="@+id/tv_add_list_theme_title"
Expand Down
85 changes: 85 additions & 0 deletions app/src/main/res/layout/item_add_list_maker_card.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="utf-8"?>
<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">

<data>

</data>

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

<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_happy_routine_add_card"
android:layout_width="254dp"
android:layout_height="168dp"
android:background="@drawable/shape_gray0_fill_gray200_stroke_20_rect"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">

<ImageView
android:id="@+id/iv_add_list_maker_card_image"
android:layout_width="54dp"
android:layout_height="54dp"
android:layout_marginStart="20dp"
android:layout_marginTop="16dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@drawable/img_add_list_maker_profile" />

<ImageView
android:id="@+id/iv_add_list_maker_to_detail"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginEnd="12dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/iv_add_list_maker_card_image"
tools:src="@drawable/ic_next" />

<TextView
android:id="@+id/tv_add_list_maker_card_detail_subtitle"
style="@style/caption1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginTop="12dp"
android:textColor="@color/gray500"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/iv_add_list_maker_card_image"
tools:text="200만 유튜버와 함께하는" />

<TextView
android:id="@+id/tv_add_list_maker_card_detail_title"
style="@style/head3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginTop="2dp"
android:textColor="@color/gray700"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_add_list_maker_card_detail_subtitle"
tools:text="유튜버가 되기 위한 1일1루틴" />

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_add_list_maker_hashtag_chip"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginTop="6dp"
android:layout_marginStart="20dp"
android:layout_marginBottom="16dp"
android:orientation="horizontal"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_add_list_maker_card_detail_title"
tools:listitem="@layout/item_add_list_maker_hashtag_chip" />


</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
32 changes: 32 additions & 0 deletions app/src/main/res/layout/item_add_list_maker_hashtag_chip.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">

<data>

</data>

<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/item_add_list_maker_hashtag_chip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="2dp"
android:background="@drawable/shape_gray200_fill_4_rect">

<TextView
android:id="@+id/tv_add_list_item_content"
style="@style/caption2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingHorizontal="8dp"
android:paddingVertical="4dp"
android:text="#유튜버"
android:textColor="@color/gray500"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>
</layout>

0 comments on commit f2f191c

Please sign in to comment.