Skip to content

Commit

Permalink
[feat] : #15 FriendRecord Emoji Bottom Sheet Design Modify
Browse files Browse the repository at this point in the history
  • Loading branch information
SsongSik committed Jun 23, 2023
1 parent e71355a commit 6e658ac
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
package com.teampome.pome.presentation.friend

import com.teampome.pome.model.response.FriendEmotionResponse

//친구 기록 클릭 리스너
interface FriendDetailRecordClickListener {

fun onFriendDetailMoreClick(recordId : Int)

fun onFriendDetailEmojiClick(emojiList : List<FriendEmotionResponse>)

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import com.teampome.pome.databinding.FragmentFriendBinding
import com.teampome.pome.databinding.PomeCalendarBottomSheetDialogBinding
import com.teampome.pome.databinding.PomeFriendSettingBottomSheetDialogBinding
import com.teampome.pome.databinding.PomeRecordMoreGoalBottomSheetDialogBinding
import com.teampome.pome.model.response.FriendEmotionResponse
import com.teampome.pome.util.base.ApiResponse
import com.teampome.pome.util.base.BaseFragment
import com.teampome.pome.util.base.CoroutineErrorHandler
Expand Down Expand Up @@ -212,4 +213,8 @@ class FriendFragment : BaseFragment<FragmentFriendBinding>(R.layout.fragment_fri
makeFriendSettingBottomDialog(recordId)
friendSettingBottomSheetDialog.show()
}

override fun onFriendDetailEmojiClick(emojiList: List<FriendEmotionResponse>) {

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ class FriendGetRecordViewHolder(
.circleCrop()
.into(friendDetailProfileIv)
}

friendDetailCardLastFriendEmotionAiv.setOnClickListener {
friendDetailRecordClickListener.onFriendDetailEmojiClick(getFriedRecord.emotionResponse.friendEmotions)
}
}
}

Expand Down
30 changes: 16 additions & 14 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 @@ -19,71 +19,73 @@
android:id="@+id/friend_detail_profile_iv"
android:layout_width="34dp"
android:layout_height="34dp"
android:layout_marginLeft="19dp"
android:layout_marginStart="19dp"
android:layout_marginBottom="20dp"
android:src="@drawable/ic_friend_all_on"
app:layout_constraintBottom_toTopOf="@+id/friend_detail_all_emotion_tv"
app:layout_constraintLeft_toLeftOf="parent" />
app:layout_constraintStart_toStartOf="parent" />

<ImageView
android:id="@+id/friend_detail_emoji_love_iv"
android:layout_width="34dp"
android:layout_height="34dp"
android:layout_marginLeft="14dp"
android:layout_marginBottom="20dp"
android:src="@drawable/emoji_love"
app:layout_constraintBottom_toTopOf="@+id/friend_detail_all_emotion_tv"
app:layout_constraintLeft_toRightOf="@id/friend_detail_profile_iv" />
app:layout_constraintStart_toEndOf="@+id/friend_detail_profile_iv"
app:layout_constraintEnd_toStartOf="@+id/friend_detail_emoji_what_iv"/>

<ImageView
android:id="@+id/friend_detail_emoji_what_iv"
android:layout_width="34dp"
android:layout_height="34dp"
android:layout_marginLeft="14dp"
android:layout_marginBottom="20dp"
android:src="@drawable/emoji_what"
app:layout_constraintBottom_toTopOf="@+id/friend_detail_all_emotion_tv"
app:layout_constraintLeft_toRightOf="@id/friend_detail_emoji_love_iv" />
app:layout_constraintStart_toEndOf="@+id/friend_detail_emoji_love_iv"
app:layout_constraintEnd_toStartOf="@+id/friend_detail_emoji_merong_iv"/>

<ImageView
android:id="@+id/friend_detail_emoji_merong_iv"
android:layout_width="34dp"
android:layout_height="34dp"
android:layout_marginLeft="14dp"
android:layout_marginBottom="20dp"
android:src="@drawable/emoji_merong"
app:layout_constraintBottom_toTopOf="@+id/friend_detail_all_emotion_tv"
app:layout_constraintLeft_toRightOf="@id/friend_detail_emoji_what_iv" />
app:layout_constraintStart_toEndOf="@+id/friend_detail_emoji_what_iv"
app:layout_constraintEnd_toStartOf="@+id/friend_detail_emoji_glass_iv"/>

<ImageView
android:id="@+id/friend_detail_emoji_glass_iv"
android:layout_width="34dp"
android:layout_height="34dp"
android:layout_marginLeft="14dp"
android:layout_marginBottom="20dp"
android:src="@drawable/emoji_glass"
app:layout_constraintBottom_toTopOf="@+id/friend_detail_all_emotion_tv"
app:layout_constraintLeft_toRightOf="@id/friend_detail_emoji_merong_iv" />
app:layout_constraintStart_toEndOf="@+id/friend_detail_emoji_merong_iv"
app:layout_constraintEnd_toStartOf="@+id/friend_detail_emoji_sad_iv"/>

<ImageView
android:id="@+id/friend_detail_emoji_sad_iv"
android:layout_width="34dp"
android:layout_height="34dp"
android:layout_marginLeft="14dp"
android:layout_marginBottom="20dp"
android:src="@drawable/emoji_sad"
app:layout_constraintBottom_toTopOf="@+id/friend_detail_all_emotion_tv"
app:layout_constraintLeft_toRightOf="@id/friend_detail_emoji_glass_iv" />
app:layout_constraintStart_toEndOf="@+id/friend_detail_emoji_glass_iv"
app:layout_constraintEnd_toStartOf="@+id/friend_detail_emoji_happy_iv"
/>

<ImageView
android:id="@+id/friend_detail_emoji_happy_iv"
android:layout_width="34dp"
android:layout_height="34dp"
android:layout_marginLeft="14dp"
android:layout_marginBottom="20dp"
android:layout_marginEnd="19dp"
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_constraintLeft_toRightOf="@id/friend_detail_emoji_sad_iv"
app:layout_constraintEnd_toEndOf="parent"/>

<TextView
android:id="@+id/friend_detail_all_emotion_tv"
Expand Down

0 comments on commit 6e658ac

Please sign in to comment.