1、游戏房,游戏操作区域距离顶部问题
2、直播间红包、神龙位置问题
This commit is contained in:
parent
a68bee94a9
commit
96b80a460b
@ -448,7 +448,7 @@ public class SudRyGameActivity extends AbsActivity implements GameRyMicManager.M
|
|||||||
// 设置游戏安全操作区域
|
// 设置游戏安全操作区域
|
||||||
GameViewInfoModel.GameViewRectModel gameViewRectModel = new GameViewInfoModel.GameViewRectModel();
|
GameViewInfoModel.GameViewRectModel gameViewRectModel = new GameViewInfoModel.GameViewRectModel();
|
||||||
gameViewRectModel.left = 0;
|
gameViewRectModel.left = 0;
|
||||||
gameViewRectModel.top = DpUtil.dp2px(320);
|
gameViewRectModel.top = DpUtil.dp2px(180);
|
||||||
gameViewRectModel.right = 0;
|
gameViewRectModel.right = 0;
|
||||||
gameViewRectModel.bottom = DpUtil.dp2px(155);
|
gameViewRectModel.bottom = DpUtil.dp2px(155);
|
||||||
gameViewModel.gameViewRectModel = gameViewRectModel;
|
gameViewModel.gameViewRectModel = gameViewRectModel;
|
||||||
|
@ -496,7 +496,7 @@ public class SudSwGameActivity extends AbsActivity implements GameSwMicManager.M
|
|||||||
// 设置游戏安全操作区域
|
// 设置游戏安全操作区域
|
||||||
GameViewInfoModel.GameViewRectModel gameViewRectModel = new GameViewInfoModel.GameViewRectModel();
|
GameViewInfoModel.GameViewRectModel gameViewRectModel = new GameViewInfoModel.GameViewRectModel();
|
||||||
gameViewRectModel.left = 0;
|
gameViewRectModel.left = 0;
|
||||||
gameViewRectModel.top = DpUtil.dp2px(320); //游戏安全区域
|
gameViewRectModel.top = DpUtil.dp2px(180); //游戏安全区域
|
||||||
gameViewRectModel.right = 0;
|
gameViewRectModel.right = 0;
|
||||||
gameViewRectModel.bottom = DpUtil.dp2px(155);
|
gameViewRectModel.bottom = DpUtil.dp2px(155);
|
||||||
gameViewModel.gameViewRectModel = gameViewRectModel;
|
gameViewModel.gameViewRectModel = gameViewRectModel;
|
||||||
|
@ -2101,12 +2101,12 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
redPacket.setVisibility(View.GONE);
|
redPacket.setVisibility(View.GONE);
|
||||||
if (dragonImmediateParticipation.getVisibility() == View.VISIBLE) {
|
if (dragonImmediateParticipation.getVisibility() == View.VISIBLE) {
|
||||||
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
||||||
layoutParams.topMargin = DpUtil.dp2px(110);
|
layoutParams.topMargin = DpUtil.dp2px(160);
|
||||||
dragonImmediateParticipation.setLayoutParams(layoutParams);
|
dragonImmediateParticipation.setLayoutParams(layoutParams);
|
||||||
}
|
}
|
||||||
if (dragonImmediateParticipationTime.getVisibility() == View.VISIBLE) {
|
if (dragonImmediateParticipationTime.getVisibility() == View.VISIBLE) {
|
||||||
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
||||||
layoutParams.topMargin = DpUtil.dp2px(110);
|
layoutParams.topMargin = DpUtil.dp2px(160);
|
||||||
dragonImmediateParticipationTime.setLayoutParams(layoutParams);
|
dragonImmediateParticipationTime.setLayoutParams(layoutParams);
|
||||||
}
|
}
|
||||||
anchorTimeHandler.removeCallbacks(anchorTimeRunnable);
|
anchorTimeHandler.removeCallbacks(anchorTimeRunnable);
|
||||||
@ -2136,22 +2136,22 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
redPacket.setVisibility(View.VISIBLE);
|
redPacket.setVisibility(View.VISIBLE);
|
||||||
if (dragonImmediateParticipation.getVisibility() == View.VISIBLE) {
|
if (dragonImmediateParticipation.getVisibility() == View.VISIBLE) {
|
||||||
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
||||||
layoutParams.topMargin = DpUtil.dp2px(190);
|
layoutParams.topMargin = DpUtil.dp2px(240);
|
||||||
dragonImmediateParticipation.setLayoutParams(layoutParams);
|
dragonImmediateParticipation.setLayoutParams(layoutParams);
|
||||||
}
|
}
|
||||||
if (dragonImmediateParticipationTime.getVisibility() == View.VISIBLE && mContext instanceof LiveRyAnchorActivity||mContext instanceof LiveSwAnchorActivity) {
|
if (dragonImmediateParticipationTime.getVisibility() == View.VISIBLE && mContext instanceof LiveRyAnchorActivity||mContext instanceof LiveSwAnchorActivity) {
|
||||||
RelativeLayout.LayoutParams layoutParamsredPacket = (RelativeLayout.LayoutParams) redPacket.getLayoutParams();
|
RelativeLayout.LayoutParams layoutParamsredPacket = (RelativeLayout.LayoutParams) redPacket.getLayoutParams();
|
||||||
layoutParamsredPacket.topMargin = DpUtil.dp2px(110);
|
layoutParamsredPacket.topMargin = DpUtil.dp2px(160);
|
||||||
redPacket.setLayoutParams(layoutParamsredPacket);
|
redPacket.setLayoutParams(layoutParamsredPacket);
|
||||||
|
|
||||||
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipationTime.getLayoutParams();
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipationTime.getLayoutParams();
|
||||||
layoutParams.topMargin = DpUtil.dp2px(190);
|
layoutParams.topMargin = DpUtil.dp2px(240);
|
||||||
dragonImmediateParticipationTime.setLayoutParams(layoutParams);
|
dragonImmediateParticipationTime.setLayoutParams(layoutParams);
|
||||||
}
|
}
|
||||||
if (mContext instanceof LiveRyAnchorActivity || mContext instanceof LiveSwAnchorActivity) {
|
if (mContext instanceof LiveRyAnchorActivity || mContext instanceof LiveSwAnchorActivity) {
|
||||||
if (dragonImmediateParticipationTime.getVisibility() == View.GONE) {
|
if (dragonImmediateParticipationTime.getVisibility() == View.GONE) {
|
||||||
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) redPacket.getLayoutParams();
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) redPacket.getLayoutParams();
|
||||||
layoutParams.topMargin = DpUtil.dp2px(110);
|
layoutParams.topMargin = DpUtil.dp2px(160);
|
||||||
redPacket.setLayoutParams(layoutParams);
|
redPacket.setLayoutParams(layoutParams);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2217,12 +2217,12 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
redPacket.setVisibility(View.GONE);
|
redPacket.setVisibility(View.GONE);
|
||||||
if (dragonImmediateParticipation.getVisibility() == View.VISIBLE) {
|
if (dragonImmediateParticipation.getVisibility() == View.VISIBLE) {
|
||||||
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
||||||
layoutParams.topMargin = DpUtil.dp2px(110);
|
layoutParams.topMargin = DpUtil.dp2px(160);
|
||||||
dragonImmediateParticipation.setLayoutParams(layoutParams);
|
dragonImmediateParticipation.setLayoutParams(layoutParams);
|
||||||
}
|
}
|
||||||
if (dragonImmediateParticipationTime.getVisibility() == View.VISIBLE) {
|
if (dragonImmediateParticipationTime.getVisibility() == View.VISIBLE) {
|
||||||
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipationTime.getLayoutParams();
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipationTime.getLayoutParams();
|
||||||
layoutParams.topMargin = DpUtil.dp2px(110);
|
layoutParams.topMargin = DpUtil.dp2px(160);
|
||||||
dragonImmediateParticipationTime.setLayoutParams(layoutParams);
|
dragonImmediateParticipationTime.setLayoutParams(layoutParams);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3556,11 +3556,11 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
dragonImmediateParticipationTime.setVisibility(View.VISIBLE);
|
dragonImmediateParticipationTime.setVisibility(View.VISIBLE);
|
||||||
if (redPacket.getVisibility() == View.VISIBLE) {
|
if (redPacket.getVisibility() == View.VISIBLE) {
|
||||||
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
||||||
layoutParams.topMargin = DpUtil.dp2px(190);
|
layoutParams.topMargin = DpUtil.dp2px(240);
|
||||||
dragonImmediateParticipationTime.setLayoutParams(layoutParams);
|
dragonImmediateParticipationTime.setLayoutParams(layoutParams);
|
||||||
} else {
|
} else {
|
||||||
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
||||||
layoutParams.topMargin = DpUtil.dp2px(110);
|
layoutParams.topMargin = DpUtil.dp2px(160);
|
||||||
dragonImmediateParticipationTime.setLayoutParams(layoutParams);
|
dragonImmediateParticipationTime.setLayoutParams(layoutParams);
|
||||||
}
|
}
|
||||||
String s1 = StringUtil.getDurationText(sendMoneyTime * 1000);
|
String s1 = StringUtil.getDurationText(sendMoneyTime * 1000);
|
||||||
@ -3570,11 +3570,11 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
dragonImmediateParticipation.setVisibility(View.VISIBLE);
|
dragonImmediateParticipation.setVisibility(View.VISIBLE);
|
||||||
if (redPacket.getVisibility() == View.VISIBLE) {
|
if (redPacket.getVisibility() == View.VISIBLE) {
|
||||||
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
||||||
layoutParams.topMargin = DpUtil.dp2px(190);
|
layoutParams.topMargin = DpUtil.dp2px(240);
|
||||||
dragonImmediateParticipation.setLayoutParams(layoutParams);
|
dragonImmediateParticipation.setLayoutParams(layoutParams);
|
||||||
} else {
|
} else {
|
||||||
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
||||||
layoutParams.topMargin = DpUtil.dp2px(110);
|
layoutParams.topMargin = DpUtil.dp2px(160);
|
||||||
dragonImmediateParticipation.setLayoutParams(layoutParams);
|
dragonImmediateParticipation.setLayoutParams(layoutParams);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3590,7 +3590,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
dragonImmediateParticipationTime.setLayoutParams(layoutParams);
|
dragonImmediateParticipationTime.setLayoutParams(layoutParams);
|
||||||
} else {
|
} else {
|
||||||
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
||||||
layoutParams.topMargin = DpUtil.dp2px(110);
|
layoutParams.topMargin = DpUtil.dp2px(160);
|
||||||
dragonImmediateParticipationTime.setLayoutParams(layoutParams);
|
dragonImmediateParticipationTime.setLayoutParams(layoutParams);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -3629,7 +3629,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
dragonImmediateParticipation.setVisibility(View.VISIBLE);
|
dragonImmediateParticipation.setVisibility(View.VISIBLE);
|
||||||
if (redPacket.getVisibility() == View.VISIBLE) {
|
if (redPacket.getVisibility() == View.VISIBLE) {
|
||||||
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
||||||
layoutParams.topMargin = DpUtil.dp2px(190);
|
layoutParams.topMargin = DpUtil.dp2px(240);
|
||||||
dragonImmediateParticipation.setLayoutParams(layoutParams);
|
dragonImmediateParticipation.setLayoutParams(layoutParams);
|
||||||
} else {
|
} else {
|
||||||
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) dragonImmediateParticipation.getLayoutParams();
|
||||||
|
@ -745,7 +745,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="12dp"
|
android:layout_marginStart="12dp"
|
||||||
android:layout_marginTop="140dp"
|
android:layout_marginTop="160dp"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
tools:visibility="visible"/>
|
tools:visibility="visible"/>
|
||||||
|
|
||||||
@ -2780,9 +2780,10 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="10dp"
|
android:layout_marginStart="10dp"
|
||||||
android:layout_marginTop="180dp"
|
android:layout_marginTop="240dp"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
|
tools:visibility="visible"
|
||||||
android:visibility="gone">
|
android:visibility="gone">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
@ -2810,6 +2811,7 @@
|
|||||||
android:layout_marginTop="120dp"
|
android:layout_marginTop="120dp"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
|
tools:visibility="visible"
|
||||||
android:visibility="gone">
|
android:visibility="gone">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
Loading…
Reference in New Issue
Block a user