|
@@ -29,6 +29,7 @@ import com.swago.baseswago.util.*
|
|
|
import com.swago.room.R
|
|
|
import com.swago.room.bean.UserRoomModel
|
|
|
import com.swago.room.databinding.DialogGamePlayBinding
|
|
|
+import com.tencent.qcloud.tim.uikit.utils.ScreenUtil
|
|
|
import kotlinx.coroutines.Dispatchers
|
|
|
import kotlinx.coroutines.launch
|
|
|
import kotlinx.coroutines.withContext
|
|
@@ -96,9 +97,9 @@ class GamePlayDialog : BaseXDFragment<DialogGamePlayBinding>(), IRoomActiveListe
|
|
|
imageViewLayoutParams.leftToLeft = R.id.cl
|
|
|
imageViewLayoutParams.leftMargin = DpPxUtil.dip2px(10f)
|
|
|
if (gameType == "9"){
|
|
|
- imageViewLayoutParams.bottomMargin = DpPxUtil.dip2px(390f)
|
|
|
+ imageViewLayoutParams.bottomMargin = ScreenUtil.getScreenWidth(getActivity())
|
|
|
} else {
|
|
|
- imageViewLayoutParams.bottomMargin = DpPxUtil.dip2px(340f)
|
|
|
+ imageViewLayoutParams.bottomMargin = ScreenUtil.getScreenWidth(getActivity()) - ScreenUtil.getPxByDp(40f)
|
|
|
}
|
|
|
val imageView = ImageView(activity)
|
|
|
imageView.setBackgroundResource(R.drawable.shape_80000000_20)
|