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);