修复主播端PK中无助力榜前三头像框显示
This commit is contained in:
parent
2236a90b31
commit
671ae63306
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user