크리에이터가 말할 때 크리에이터 배경 표시
This commit is contained in:
parent
9d97feb184
commit
869b83804d
|
@ -1477,6 +1477,12 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
||||||
speakerListAdapter.activeSpeakers.clear()
|
speakerListAdapter.activeSpeakers.clear()
|
||||||
speakerListAdapter.activeSpeakers.addAll(activeSpeakerIds)
|
speakerListAdapter.activeSpeakers.addAll(activeSpeakerIds)
|
||||||
speakerListAdapter.notifyDataSetChanged()
|
speakerListAdapter.notifyDataSetChanged()
|
||||||
|
|
||||||
|
if (activeSpeakerIds.contains(viewModel.roomInfoResponse.creatorId.toInt())) {
|
||||||
|
binding.ivCreatorProfileBg.visibility = View.VISIBLE
|
||||||
|
} else {
|
||||||
|
binding.ivCreatorProfileBg.visibility = View.GONE
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -135,6 +135,13 @@
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:contentDescription="@null" />
|
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
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
|
Loading…
Reference in New Issue