Merge remote-tracking branch 'origin/新潘多拉_6.8.2' into 新潘多拉_6.8.2
This commit is contained in:
commit
ea1015b0b4
@ -4054,10 +4054,14 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
int mScreenWdith = util.getScreenWdith();
|
int mScreenWdith = util.getScreenWdith();
|
||||||
RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) lt_pk_line.getLayoutParams();
|
RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) lt_pk_line.getLayoutParams();
|
||||||
if (isAnchorLive()) {//因为主播的比较短所以往上移动
|
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;
|
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);
|
//params.bottomMargin=(mScreenWdith * 720 / 960);
|
||||||
lt_pk_line.requestLayout();
|
lt_pk_line.requestLayout();
|
||||||
lt_pk_line.setVisibility(View.VISIBLE);
|
lt_pk_line.setVisibility(View.VISIBLE);
|
||||||
|
Loading…
Reference in New Issue
Block a user