크리에이터가 말할 때 크리에이터 배경 표시

This commit is contained in:
klaus 2024-01-16 15:59:34 +09:00
parent 9d97feb184
commit 869b83804d
2 changed files with 13 additions and 0 deletions

View File

@ -1477,6 +1477,12 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
speakerListAdapter.activeSpeakers.clear()
speakerListAdapter.activeSpeakers.addAll(activeSpeakerIds)
speakerListAdapter.notifyDataSetChanged()
if (activeSpeakerIds.contains(viewModel.roomInfoResponse.creatorId.toInt())) {
binding.ivCreatorProfileBg.visibility = View.VISIBLE
} else {
binding.ivCreatorProfileBg.visibility = View.GONE
}
}
}

View File

@ -135,6 +135,13 @@
android:layout_centerVertical="true"
android:contentDescription="@null" />
<ImageView
android:id="@+id/iv_creator_profile_bg"
android:layout_width="36.7dp"
android:layout_height="36.7dp"
android:background="@drawable/bg_round_corner_46_7_transparent_3bb9f1"
android:contentDescription="@null" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"