From f4ca63af9d6020c5cde954a25ae6bef0d22f052e Mon Sep 17 00:00:00 2001 From: klaus Date: Wed, 22 Nov 2023 23:51:26 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EB=B8=8C=20=EC=9C=A0?= =?UTF-8?q?=EC=A0=80=20=ED=94=84=EB=A1=9C=ED=95=84=20=EB=8B=A4=EC=9D=B4?= =?UTF-8?q?=EC=96=BC=EB=A1=9C=EA=B7=B8=20-=20=ED=81=AC=EB=A6=AC=EC=97=90?= =?UTF-8?q?=EC=9D=B4=ED=84=B0=EA=B0=80=20=EC=95=84=EB=8B=8C=20=EC=9D=BC?= =?UTF-8?q?=EB=B0=98=20=EC=9C=A0=EC=A0=80=EB=8A=94=20=ED=83=9C=EA=B7=B8=20?= =?UTF-8?q?=EC=98=81=EC=97=AD=EA=B3=BC=20=EC=86=8C=EA=B0=9C=20=EC=98=81?= =?UTF-8?q?=EC=97=AD=EC=9D=B4=20=EB=B3=B4=EC=9D=B4=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../room/profile/LiveRoomUserProfileDialog.kt | 39 +++++++------- .../layout/dialog_live_room_user_profile.xml | 52 +++++-------------- 2 files changed, 35 insertions(+), 56 deletions(-) diff --git a/app/src/main/java/kr/co/vividnext/sodalive/live/room/profile/LiveRoomUserProfileDialog.kt b/app/src/main/java/kr/co/vividnext/sodalive/live/room/profile/LiveRoomUserProfileDialog.kt index b5594bd..bc6e0e4 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/live/room/profile/LiveRoomUserProfileDialog.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/live/room/profile/LiveRoomUserProfileDialog.kt @@ -83,12 +83,8 @@ class LiveRoomUserProfileDialog( } dialogView.tvNickname.text = userProfile.nickname - dialogView.tvTags.text = userProfile.tags dialogView.tvGender.text = userProfile.gender - dialogView.tvIntroduce.text = userProfile.introduce - dialogView.ivClose.setOnClickListener { alertDialog.dismiss() } - dialogView.tvIntroduce.setOnClickListener { isIntroduceFold = !isIntroduceFold @@ -162,25 +158,32 @@ class LiveRoomUserProfileDialog( } if (userProfile.isFollowing != null) { - dialogView.llFollow.visibility = View.VISIBLE + dialogView.ivFollow.visibility = View.VISIBLE if (userProfile.isFollowing) { - dialogView.tvFollow.text = "팔로잉" - dialogView.ivFollow.setImageResource(R.drawable.ic_alarm_selected) - dialogView.llFollow.setBackgroundResource( - R.drawable.bg_round_corner_23_3_3e1b93_9970ff - ) - dialogView.tvFollow.setOnClickListener { onClickUnFollow(userProfile.userId) } + dialogView.ivFollow.setImageResource(R.drawable.btn_following) + dialogView.ivFollow.setOnClickListener { onClickUnFollow(userProfile.userId) } } else { - dialogView.tvFollow.text = "팔로우" - dialogView.ivFollow.setImageResource(R.drawable.ic_alarm) - dialogView.llFollow.setBackgroundResource( - R.drawable.bg_round_corner_23_3_transparent_9970ff - ) - dialogView.tvFollow.setOnClickListener { onClickFollow(userProfile.userId) } + dialogView.ivFollow.setImageResource(R.drawable.btn_follow) + dialogView.ivFollow.setOnClickListener { onClickFollow(userProfile.userId) } + } + + if (userProfile.tags.isNotBlank()) { + dialogView.tvTags.text = userProfile.tags + dialogView.tvTags.visibility = View.VISIBLE + } else { + dialogView.tvTags.visibility = View.GONE + } + + if (userProfile.introduce.isNotBlank()) { + dialogView.tvIntroduce.text = userProfile.introduce + dialogView.tvIntroduce.visibility = View.VISIBLE + } else { + dialogView.tvIntroduce.visibility = View.GONE } } else { - dialogView.llFollow.visibility = View.GONE + dialogView.ivFollow.visibility = View.GONE + dialogView.tvIntroduce.visibility = View.GONE } dialogView.ivMenu.setOnClickListener { diff --git a/app/src/main/res/layout/dialog_live_room_user_profile.xml b/app/src/main/res/layout/dialog_live_room_user_profile.xml index a1623da..e8b417d 100644 --- a/app/src/main/res/layout/dialog_live_room_user_profile.xml +++ b/app/src/main/res/layout/dialog_live_room_user_profile.xml @@ -2,15 +2,13 @@ - - + + - - - - - - -