|
@@ -4,14 +4,16 @@ import android.graphics.Color
|
|
|
import android.os.Bundle
|
|
|
import android.view.Gravity
|
|
|
import android.view.ViewGroup
|
|
|
-import android.view.ViewGroup.LayoutParams.WRAP_CONTENT
|
|
|
-import android.webkit.*
|
|
|
-import android.widget.FrameLayout
|
|
|
-import com.alibaba.android.arouter.launcher.ARouter
|
|
|
+import android.webkit.JavascriptInterface
|
|
|
+import android.webkit.WebResourceError
|
|
|
+import android.webkit.WebResourceRequest
|
|
|
+import android.webkit.WebView
|
|
|
+import android.webkit.WebViewClient
|
|
|
import android.widget.ImageView
|
|
|
import androidx.constraintlayout.widget.ConstraintLayout
|
|
|
import androidx.constraintlayout.widget.ConstraintSet
|
|
|
import androidx.lifecycle.lifecycleScope
|
|
|
+import com.alibaba.android.arouter.launcher.ARouter
|
|
|
import com.google.gson.Gson
|
|
|
import com.swago.baseswago.baseroom.IRoomActiveListener
|
|
|
import com.swago.baseswago.baseroom.IRoomInfo
|
|
@@ -19,20 +21,24 @@ import com.swago.baseswago.baseroom.SwagoRoomManager
|
|
|
import com.swago.baseswago.constant.ARouteConstant
|
|
|
import com.swago.baseswago.constant.UrlConstant
|
|
|
import com.swago.baseswago.dialog.BaseXDFragment
|
|
|
-import com.swago.baseswago.dialog.PayDialog
|
|
|
import com.swago.baseswago.im.IMGroupNewMsgListener
|
|
|
import com.swago.baseswago.im.ImConstant
|
|
|
import com.swago.baseswago.im.ImConstant.beauty_game_grab_host
|
|
|
import com.swago.baseswago.im.ImConstant.beauty_game_grab_host_two
|
|
|
import com.swago.baseswago.model.im.BeautyHostGameData
|
|
|
import com.swago.baseswago.model.im.CusNewMsgBean
|
|
|
-import com.swago.baseswago.model.im.FollowSuccessMsgBean
|
|
|
import com.swago.baseswago.model.im.GameData
|
|
|
import com.swago.baseswago.model.live.game.GameInfoModel
|
|
|
-import com.swago.baseswago.util.*
|
|
|
+import com.swago.baseswago.util.DpPxUtil
|
|
|
+import com.swago.baseswago.util.FileUtil
|
|
|
+import com.swago.baseswago.util.MD5Util
|
|
|
+import com.swago.baseswago.util.NoDoubleClickListener
|
|
|
+import com.swago.baseswago.util.SwagoInfo
|
|
|
+import com.swago.baseswago.util.UserInfo
|
|
|
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
|
|
@@ -120,9 +126,11 @@ 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)
|