라이브 유저 프로필 다이얼로그

- 크리에이터가 아닌 일반 유저는 태그 영역과 소개 영역이 보이지 않도록 제거
This commit is contained in:
2023-11-22 23:51:26 +09:00
parent 61ee1fc5be
commit f4ca63af9d
2 changed files with 35 additions and 56 deletions

View File

@@ -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 {