调整 房间小游戏安全区域

This commit is contained in:
wzq
2023-09-27 12:02:24 +08:00
parent cb89eccf23
commit 08abf47890
3 changed files with 7 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ import android.view.View
import android.view.ViewTreeObserver.OnGlobalLayoutListener
import android.widget.FrameLayout
import com.google.gson.Gson
import com.netease.nim.uikit.common.util.sys.ScreenUtil
import com.yizhuan.erban.R
import com.yizhuan.xchat_android_core.auth.AuthModel
import com.yizhuan.xchat_android_core.manager.AvRoomDataManager
import com.yizhuan.xchat_android_core.room.game.GameCfg
@@ -317,9 +317,9 @@ class GameDelegate(val activity: Activity, val container: FrameLayout, var mgId:
//遊戲安全操作區域
val viewGameRect = JSONObject()
viewGameRect.put("left", 0)
viewGameRect.put("top", ScreenUtil.dip2px(200f))
viewGameRect.put("top", container.context.resources.getDimensionPixelOffset(R.dimen.dp_180))
viewGameRect.put("right", 0)
viewGameRect.put("bottom", ScreenUtil.dip2px(200f))
viewGameRect.put("bottom", container.context.resources.getDimensionPixelOffset(R.dimen.dp_150))
jsonObject.put("view_game_rect", viewGameRect)
//通知遊戲

View File

@@ -124,7 +124,8 @@
android:id="@+id/bottom_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" />
android:layout_alignParentBottom="true"
tools:layout_height="@dimen/dp_52" />
<com.yizhuan.erban.avroom.widget.MessageView
android:id="@+id/message_view"