Skip to content

Commit

Permalink
[feat] : #15 친구 기록 이모지 뷰 위치 조절
Browse files Browse the repository at this point in the history
  • Loading branch information
SsongSik committed Jun 12, 2023
1 parent e12e0a0 commit 9bdfe1e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,14 @@ class FriendRecordGetAdapter(
friendDetailRecordClickListener.onFriendDetailMoreClick(getFriedRecord.id)
}

//Todo 시간 표시 필요
friendDetailContentNameTimeTv.text = " · ${getFriedRecord.oneLineMind}"

if(getFriedRecord.emotionResponse.friendEmotions.isEmpty()) {
friendDetailCardLastFriendEmotionCountTv.visibility = View.INVISIBLE
} else {
val count = getFriedRecord.emotionResponse.friendEmotions.size

if(count >= 10) {
friendDetailCardLastFriendEmotionCountTv.text = "9+"
} else {
Expand All @@ -69,11 +73,15 @@ class FriendRecordGetAdapter(
}

friendDetailCardFirstFriendEmotionAiv.setOnClickListener {
val params = friendEmojiRegisterCl.layoutParams
if(friendEmojiRegisterCl.visibility == View.VISIBLE) {
friendEmojiRegisterCl.visibility = View.GONE
params.height = 0
} else {
friendEmojiRegisterCl.visibility = View.VISIBLE
params.height = ViewGroup.LayoutParams.WRAP_CONTENT
}
friendEmojiRegisterCl.layoutParams = params
}
}
}
Expand Down

0 comments on commit 9bdfe1e

Please sign in to comment.