From 671ae63306c86cdeeed9d73050c7bde7cdadac83 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Mon, 7 Oct 2024 13:36:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=BB=E6=92=AD=E7=AB=AFPK?= =?UTF-8?q?=E4=B8=AD=E6=97=A0=E5=8A=A9=E5=8A=9B=E6=A6=9C=E5=89=8D=E4=B8=89?= =?UTF-8?q?=E5=A4=B4=E5=83=8F=E6=A1=86=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/live/views/LiveRoomViewHolder.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java index d5c572a98..d0e3f389f 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -4054,10 +4054,14 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis int mScreenWdith = util.getScreenWdith(); RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) lt_pk_line.getLayoutParams(); if (isAnchorLive()) {//因为主播的比较短所以往上移动 - params.setMargins(0, 0, DpUtil.dp2px(R.dimen.live_top), 0); + // params.setMargins(0, 0, DpUtil.dp2px(R.dimen.live_top), 0); } params.height = mScreenWdith * 720 / PK_LINE_HEIGHT; - + if(isAnchorLive()){ + //280来自:view_live_play_sw.xml的pk_container高度 + //42来自:view_live_room.xml的pk_red_layout的头像框高度 + params.height= DpUtil.dp2px(280-42); + } //params.bottomMargin=(mScreenWdith * 720 / 960); lt_pk_line.requestLayout(); lt_pk_line.setVisibility(View.VISIBLE);