Skip to content

Commit

Permalink
[feat] : #15 FriendRecord Emoji Bottom Sheet RV Add
Browse files Browse the repository at this point in the history
  • Loading branch information
SsongSik committed Jun 23, 2023
1 parent 6e658ac commit 7baa68f
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 109 deletions.
29 changes: 29 additions & 0 deletions app/src/main/res/layout/item_bottom_emoji.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">

<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/friend_emotion_happy_aiv"
android:layout_width="54dp"
android:layout_height="54dp"
android:layout_marginBottom="16dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
tools:src="@drawable/emoji_mint_fiter_happy" />

<TextView
android:id="@+id/friend_emotion_happy_tv"
style="@style/Pome.Medium.14"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/remind_dialog_happy_text"
android:textColor="@color/grey_8"
app:layout_constraintTop_toBottomOf="@+id/friend_emotion_happy_aiv"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>
133 changes: 24 additions & 109 deletions app/src/main/res/layout/pome_friend_emotion_bottom_sheet_dialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
android:layout_marginBottom="20dp"
android:src="@drawable/emoji_love"
app:layout_constraintBottom_toTopOf="@+id/friend_detail_all_emotion_tv"
app:layout_constraintStart_toEndOf="@+id/friend_detail_profile_iv"
app:layout_constraintEnd_toStartOf="@+id/friend_detail_emoji_what_iv"/>
app:layout_constraintEnd_toStartOf="@+id/friend_detail_emoji_what_iv"
app:layout_constraintStart_toEndOf="@+id/friend_detail_profile_iv" />

<ImageView
android:id="@+id/friend_detail_emoji_what_iv"
Expand All @@ -42,8 +42,8 @@
android:layout_marginBottom="20dp"
android:src="@drawable/emoji_what"
app:layout_constraintBottom_toTopOf="@+id/friend_detail_all_emotion_tv"
app:layout_constraintStart_toEndOf="@+id/friend_detail_emoji_love_iv"
app:layout_constraintEnd_toStartOf="@+id/friend_detail_emoji_merong_iv"/>
app:layout_constraintEnd_toStartOf="@+id/friend_detail_emoji_merong_iv"
app:layout_constraintStart_toEndOf="@+id/friend_detail_emoji_love_iv" />

<ImageView
android:id="@+id/friend_detail_emoji_merong_iv"
Expand All @@ -52,8 +52,8 @@
android:layout_marginBottom="20dp"
android:src="@drawable/emoji_merong"
app:layout_constraintBottom_toTopOf="@+id/friend_detail_all_emotion_tv"
app:layout_constraintStart_toEndOf="@+id/friend_detail_emoji_what_iv"
app:layout_constraintEnd_toStartOf="@+id/friend_detail_emoji_glass_iv"/>
app:layout_constraintEnd_toStartOf="@+id/friend_detail_emoji_glass_iv"
app:layout_constraintStart_toEndOf="@+id/friend_detail_emoji_what_iv" />

<ImageView
android:id="@+id/friend_detail_emoji_glass_iv"
Expand All @@ -62,8 +62,8 @@
android:layout_marginBottom="20dp"
android:src="@drawable/emoji_glass"
app:layout_constraintBottom_toTopOf="@+id/friend_detail_all_emotion_tv"
app:layout_constraintStart_toEndOf="@+id/friend_detail_emoji_merong_iv"
app:layout_constraintEnd_toStartOf="@+id/friend_detail_emoji_sad_iv"/>
app:layout_constraintEnd_toStartOf="@+id/friend_detail_emoji_sad_iv"
app:layout_constraintStart_toEndOf="@+id/friend_detail_emoji_merong_iv" />

<ImageView
android:id="@+id/friend_detail_emoji_sad_iv"
Expand All @@ -72,128 +72,43 @@
android:layout_marginBottom="20dp"
android:src="@drawable/emoji_sad"
app:layout_constraintBottom_toTopOf="@+id/friend_detail_all_emotion_tv"
app:layout_constraintStart_toEndOf="@+id/friend_detail_emoji_glass_iv"
app:layout_constraintEnd_toStartOf="@+id/friend_detail_emoji_happy_iv"
/>
app:layout_constraintStart_toEndOf="@+id/friend_detail_emoji_glass_iv" />

<ImageView
android:id="@+id/friend_detail_emoji_happy_iv"
android:layout_width="34dp"
android:layout_height="34dp"
android:layout_marginBottom="20dp"
android:layout_marginEnd="19dp"
android:layout_marginBottom="20dp"
android:src="@drawable/emoji_happy"
app:layout_constraintBottom_toTopOf="@+id/friend_detail_all_emotion_tv"
app:layout_constraintLeft_toRightOf="@id/friend_detail_emoji_sad_iv"
app:layout_constraintEnd_toEndOf="parent"/>
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintLeft_toRightOf="@id/friend_detail_emoji_sad_iv" />

<TextView
android:id="@+id/friend_detail_all_emotion_tv"
style="@style/Pome.SemiBold.14"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginBottom="53dp"
android:textColor="@color/grey_9"
app:layout_constraintBottom_toTopOf="@id/friend_emotion_happy_cl"
app:layout_constraintBottom_toTopOf="@id/friend_bottom_emoji_rv"
app:layout_constraintStart_toStartOf="parent"
tools:text="전체 6개" />

<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/friend_emotion_happy_cl"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="70dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/friend_emotion_what_cl"
app:layout_constraintStart_toStartOf="parent">

<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/friend_emotion_happy_aiv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
app:layout_constraintBottom_toTopOf="@id/friend_emotion_happy_tv"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
tools:src="@drawable/emoji_mint_fiter_happy" />

<TextView
android:id="@+id/friend_emotion_happy_tv"
style="@style/Pome.Medium.14"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/remind_dialog_happy_text"
android:textColor="@color/grey_8"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/friend_emotion_what_cl"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="70dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@id/friend_emotion_sad_cl"
app:layout_constraintStart_toEndOf="@id/friend_emotion_happy_cl">

<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/friend_emotion_what_aiv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
app:layout_constraintBottom_toTopOf="@id/friend_emotion_what_tv"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
tools:src="@drawable/emoji_mint_fiter_what" />

<TextView
android:id="@+id/friend_emotion_what_tv"
style="@style/Pome.Medium.14"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/remind_dialog_what_text"
android:textColor="@color/grey_8"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>

<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/friend_emotion_sad_cl"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="70dp"
app:layout_constraintBottom_toBottomOf="parent"
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/friend_bottom_emoji_rv"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginStart="10dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="20dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/friend_emotion_what_cl">

<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/friend_emotion_sad_aiv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
app:layout_constraintBottom_toTopOf="@id/friend_emotion_sad_tv"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
tools:src="@drawable/emoji_mint_fiter_sad" />

<TextView
android:id="@+id/friend_emotion_sad_tv"
style="@style/Pome.Medium.14"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/remind_dialog_sad_text"
android:textColor="@color/grey_8"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/friend_detail_all_emotion_tv"
tools:listitem="@layout/item_bottom_emoji" />

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

0 comments on commit 7baa68f

Please sign in to comment.