修复:直播间内遮盖问题

This commit is contained in:
18401019693 2022-12-20 15:45:24 +08:00
parent 9cd1638d55
commit af5d8dbf19
5 changed files with 36 additions and 13 deletions

View File

@ -10,9 +10,9 @@ ext {
manifestPlaceholders = [ manifestPlaceholders = [
// //
serverHost : "https://napi.yaoulive.com", // serverHost : "https://napi.yaoulive.com",
// //
// serverHost : "https://ceshi.yaoulive.com", serverHost : "https://ceshi.yaoulive.com",
// //
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB", txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",
@ -25,8 +25,8 @@ ext {
baiduAppSecretKey: "nEVSgmuGpU0pjPr6VleEGGAl0hzGW52S", baiduAppSecretKey: "nEVSgmuGpU0pjPr6VleEGGAl0hzGW52S",
// true表示谷歌支付 false // true表示谷歌支付 false
isGooglePlay : false, isGooglePlay : true,
// //
isUploadLog : true isUploadLog : false
] ]
} }

View File

@ -254,7 +254,8 @@ public class LiveAudienceEvent extends BaseModel {
PK_TIME_COUNT(48, "多人PK结束"), PK_TIME_COUNT(48, "多人PK结束"),
DISCONNEXT_PK_TIME(50, "单人Pk结束"), DISCONNEXT_PK_TIME(50, "单人Pk结束"),
UP_PK_TWO(51, "PK头像信息"), UP_PK_TWO(51, "PK头像信息"),
CUSTOM_FULL_SERVICE_NOTIFY(51, "全服通知"); CUSTOM_FULL_SERVICE_NOTIFY(51, "全服通知"),
CHANGE_VIEW(52, "更改连胜位置");
private int type; private int type;
private String name; private String name;

View File

@ -20,7 +20,6 @@ import android.widget.RelativeLayout;
import android.widget.TextView; import android.widget.TextView;
import com.yunbao.common.CommonAppConfig; import com.yunbao.common.CommonAppConfig;
import com.yunbao.common.utils.Bus;
import com.yunbao.common.utils.DpUtil; import com.yunbao.common.utils.DpUtil;
import com.yunbao.common.utils.ScreenDimenUtil; import com.yunbao.common.utils.ScreenDimenUtil;
import com.yunbao.common.utils.WordUtil; import com.yunbao.common.utils.WordUtil;
@ -381,7 +380,7 @@ public class LiveLinkMicPkViewHolder extends AbsViewHolder {
* @param result -1自己的主播输 0平 1自己的主播赢 * @param result -1自己的主播输 0平 1自己的主播赢
*/ */
public void end(final int result) { public void end(final int result) {
Log.e("ry1",result+"result"); Log.e("ry1", result + "result");
if (mResultImageView == null) { if (mResultImageView == null) {
return; return;
} }
@ -417,6 +416,7 @@ public class LiveLinkMicPkViewHolder extends AbsViewHolder {
img_pk_show_r.setBackgroundResource(R.mipmap.icon_pk_win); img_pk_show_r.setBackgroundResource(R.mipmap.icon_pk_win);
} }
LiveRoomViewHolder.pkEndList(result); LiveRoomViewHolder.pkEndList(result);
EventBus.getDefault().post(new LiveAudienceEvent().setType(LiveAudienceEvent.LiveAudienceType.CHANGE_VIEW));
} }
} }
}); });

View File

@ -1878,9 +1878,27 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
img_pk_fist_l.setBackgroundResource(R.mipmap.icon_red_smvp); img_pk_fist_l.setBackgroundResource(R.mipmap.icon_red_smvp);
img_pk_fist_r.setBackgroundResource(R.mipmap.icon_blue_mvp); img_pk_fist_r.setBackgroundResource(R.mipmap.icon_blue_mvp);
} }
// pkEndIndex = 1; // pkEndIndex = 1;
} }
/**
* 修改连胜位置
*/
private void changeView() {
if (mRedVal.getVisibility() == View.VISIBLE) {
RelativeLayout.LayoutParams redValLayoutParams = (RelativeLayout.LayoutParams) mRedVal.getLayoutParams();
redValLayoutParams.bottomMargin = DpUtil.dp2px(60);
mRedVal.setLayoutParams(redValLayoutParams);
}
if (mBlueVal.getVisibility() == View.VISIBLE) {
RelativeLayout.LayoutParams blueValLayoutParams = (RelativeLayout.LayoutParams) mBlueVal.getLayoutParams();
blueValLayoutParams.bottomMargin = DpUtil.dp2px(60);
mBlueVal.setLayoutParams(blueValLayoutParams);
}
}
//头像显示 //头像显示
public void setHeadData(LivePKUserListBean bean) { public void setHeadData(LivePKUserListBean bean) {
if (bean == null) return; if (bean == null) return;
@ -3822,6 +3840,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
ToastUtil.show("对方UID=" + pkUid); ToastUtil.show("对方UID=" + pkUid);
UpPkTwo(); UpPkTwo();
break; break;
case CHANGE_VIEW:
changeView();
break;
} }
} }

View File

@ -9,11 +9,6 @@
android:paddingTop="15dp"> android:paddingTop="15dp">
<com.yunbao.common.views.weight.NobleNoticeView
android:id="@+id/noble"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="60dp" />
<LinearLayout <LinearLayout
android:id="@+id/lin" android:id="@+id/lin"
@ -2308,4 +2303,10 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="110dp" android:layout_marginTop="110dp"
android:visibility="gone" /> android:visibility="gone" />
<com.yunbao.common.views.weight.NobleNoticeView
android:id="@+id/noble"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="60dp" />
</RelativeLayout> </RelativeLayout>