라이브 - 방장을 제외한 모든 유저에게 참여자 목록 버튼이 보이지 않도록 수정

This commit is contained in:
klaus 2023-10-31 13:56:50 +09:00
parent c9eb0f0e01
commit 0226a696d4
2 changed files with 60 additions and 49 deletions

View File

@ -759,7 +759,13 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
}
}
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)

View File

@ -214,12 +214,16 @@
android:contentDescription="@null"
android:src="@drawable/ic_notice_normal" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/ll_donation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_toStartOf="@+id/ll_view_users"
android:background="@drawable/bg_round_corner_15_transparent_bbbbbb"
android:gravity="center"
android:paddingHorizontal="10dp"
@ -246,12 +250,12 @@
android:id="@+id/ll_view_users"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
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">
<TextView
@ -273,6 +277,7 @@
tools:ignore="RelativeOverlap"
tools:text="18" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
<ScrollView