修复主播端PK中无助力榜前三头像框显示

This commit is contained in:
zlzw 2024-10-07 13:36:05 +08:00
parent 2236a90b31
commit 671ae63306

View File

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