From 0226a696d4443d3e2c7552849d486aeb2f399cb0 Mon Sep 17 00:00:00 2001 From: klaus Date: Tue, 31 Oct 2023 13:56:50 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EB=B8=8C=20-=20=EB=B0=A9?= =?UTF-8?q?=EC=9E=A5=EC=9D=84=20=EC=A0=9C=EC=99=B8=ED=95=9C=20=EB=AA=A8?= =?UTF-8?q?=EB=93=A0=20=EC=9C=A0=EC=A0=80=EC=97=90=EA=B2=8C=20=EC=B0=B8?= =?UTF-8?q?=EC=97=AC=EC=9E=90=20=EB=AA=A9=EB=A1=9D=20=EB=B2=84=ED=8A=BC?= =?UTF-8?q?=EC=9D=B4=20=EB=B3=B4=EC=9D=B4=EC=A7=80=20=EC=95=8A=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sodalive/live/room/LiveRoomActivity.kt | 8 +- .../main/res/layout/activity_live_room.xml | 101 +++++++++--------- 2 files changed, 60 insertions(+), 49 deletions(-) diff --git a/app/src/main/java/kr/co/vividnext/sodalive/live/room/LiveRoomActivity.kt b/app/src/main/java/kr/co/vividnext/sodalive/live/room/LiveRoomActivity.kt index 4ee2611..64003ab 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/live/room/LiveRoomActivity.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/live/room/LiveRoomActivity.kt @@ -759,7 +759,13 @@ class LiveRoomActivity : BaseActivity(ActivityLiveRoomB } } - binding.llViewUsers.setOnClickListener { roomProfileDialog.show() } + if (response.creatorId == SharedPreferenceManager.userId) { + binding.llViewUsers.visibility = View.VISIBLE + binding.llViewUsers.setOnClickListener { roomProfileDialog.show() } + } else { + binding.llViewUsers.visibility = View.GONE + } + binding.tvParticipate.text = "${response.participantsCount}" setNoticeAndClickableUrl(binding.tvNotice, response.notice) diff --git a/app/src/main/res/layout/activity_live_room.xml b/app/src/main/res/layout/activity_live_room.xml index 8cacc79..d4bd5a2 100644 --- a/app/src/main/res/layout/activity_live_room.xml +++ b/app/src/main/res/layout/activity_live_room.xml @@ -215,63 +215,68 @@ android:src="@drawable/ic_notice_normal" /> - - - - - - - + android:orientation="horizontal"> - + android:background="@drawable/bg_round_corner_15_transparent_bbbbbb" + android:gravity="center" + android:paddingHorizontal="10dp" + android:paddingVertical="5.3dp" + tools:ignore="RelativeOverlap"> - + + + + + + android:background="@drawable/bg_round_corner_15_transparent_bbbbbb" + android:orientation="horizontal" + android:paddingHorizontal="11dp" + android:visibility="gone" + android:paddingVertical="7dp" + android:layout_marginStart="8dp" + tools:ignore="RelativeOverlap"> + + + + +