fix:修正个播房玩法入口布局
This commit is contained in:
@@ -118,29 +118,29 @@ class SingleRoomFragment : BaseRoomFragment<ISingleRoomView?, SingleRoomPresente
|
||||
}
|
||||
|
||||
fun updateConfigButtonArea() {
|
||||
// val configModel = AvRoomDataManager.get().rightBottomIconConfig
|
||||
// if (configModel == null) {
|
||||
// gameBinding.ivConfigEntrance.visibility = View.GONE
|
||||
// } else {
|
||||
// if (configModel.icon1Url == null) {
|
||||
// gameBinding.ivConfigEntrance.visibility = View.GONE
|
||||
// } else {
|
||||
// ImageLoadUtils.loadAvatar(configModel.icon1Url, gameBinding.ivConfigEntrance)
|
||||
// gameBinding.ivConfigEntrance.visibility = View.VISIBLE
|
||||
// }
|
||||
// if (configModel.icon2Url != null) {
|
||||
// ImageLoadUtils.loadAvatar(configModel.icon2Url, gameBinding.ivGame)
|
||||
// }
|
||||
// }
|
||||
// if (AvRoomDataManager.get().isDatingMode) {
|
||||
// gameBinding.ivGame.visibility = View.GONE
|
||||
// } else {
|
||||
// if (hasBaishunGames) {
|
||||
// gameBinding.ivGame.visibility = View.VISIBLE
|
||||
// } else {
|
||||
// gameBinding.ivGame.visibility = View.GONE
|
||||
// }
|
||||
// }
|
||||
val configModel = AvRoomDataManager.get().rightBottomIconConfig
|
||||
if (configModel == null) {
|
||||
gameBinding.ivConfigEntrance.visibility = View.GONE
|
||||
} else {
|
||||
if (configModel.icon1Url == null) {
|
||||
gameBinding.ivConfigEntrance.visibility = View.GONE
|
||||
} else {
|
||||
ImageLoadUtils.loadAvatar(configModel.icon1Url, gameBinding.ivConfigEntrance)
|
||||
gameBinding.ivConfigEntrance.visibility = View.VISIBLE
|
||||
}
|
||||
if (configModel.icon2Url != null) {
|
||||
ImageLoadUtils.loadAvatar(configModel.icon2Url, gameBinding.ivGame)
|
||||
}
|
||||
}
|
||||
if (AvRoomDataManager.get().isDatingMode) {
|
||||
gameBinding.ivGame.visibility = View.GONE
|
||||
} else {
|
||||
if (hasBaishunGames) {
|
||||
gameBinding.ivGame.visibility = View.VISIBLE
|
||||
} else {
|
||||
gameBinding.ivGame.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onReceiveRoomEvent(roomEvent: RoomEvent?) {
|
||||
|
@@ -173,29 +173,32 @@
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="@dimen/dp_130"
|
||||
android:clipChildren="false"
|
||||
app:layout_constraintBottom_toTopOf="@id/bottom_view">
|
||||
app:layout_constraintBottom_toTopOf="@+id/bottom_view">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_config_entrance"
|
||||
android:layout_width="@dimen/dp_38"
|
||||
android:layout_height="@dimen/dp_38"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_above="@id/iv_game"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginEnd="@dimen/dp_11"
|
||||
android:layout_marginBottom="@dimen/dp_10"
|
||||
android:onClick="@{click}"
|
||||
android:src="@drawable/room_ic_collect_no"
|
||||
android:visibility="visible"
|
||||
tools:visibility="visible"/>
|
||||
tools:visibility="visible" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_game"
|
||||
android:layout_width="@dimen/dp_38"
|
||||
android:layout_height="@dimen/dp_38"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginEnd="@dimen/dp_11"
|
||||
android:layout_marginBottom="@dimen/dp_20"
|
||||
android:alpha="1"
|
||||
android:onClick="@{click}"
|
||||
android:src="@drawable/room_ic_game"
|
||||
android:visibility="visible"
|
||||
@@ -244,7 +247,6 @@
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/input_layout"
|
||||
android:layout_width="0dp"
|
||||
|
Reference in New Issue
Block a user