From 9bdfe1e1060ee944f8f16f81e459711e1f0795f7 Mon Sep 17 00:00:00 2001 From: SsongSik Date: Tue, 13 Jun 2023 00:08:16 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20:=20#15=20=EC=B9=9C=EA=B5=AC=20?= =?UTF-8?q?=EA=B8=B0=EB=A1=9D=20=EC=9D=B4=EB=AA=A8=EC=A7=80=20=EB=B7=B0=20?= =?UTF-8?q?=EC=9C=84=EC=B9=98=20=EC=A1=B0=EC=A0=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pome/presentation/friend/FriendRecordGetAdapter.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/java/com/teampome/pome/presentation/friend/FriendRecordGetAdapter.kt b/app/src/main/java/com/teampome/pome/presentation/friend/FriendRecordGetAdapter.kt index b27dc614..72a562ba 100644 --- a/app/src/main/java/com/teampome/pome/presentation/friend/FriendRecordGetAdapter.kt +++ b/app/src/main/java/com/teampome/pome/presentation/friend/FriendRecordGetAdapter.kt @@ -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 { @@ -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 } } }