修改连麦视频高度异常问题
This commit is contained in:
parent
4ebe56913a
commit
857206e3da
@ -460,7 +460,6 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder {
|
|||||||
RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) mVideoView.getLayoutParams();
|
RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) mVideoView.getLayoutParams();
|
||||||
params.height = height;
|
params.height = height;
|
||||||
params.topMargin = 0;
|
params.topMargin = 0;
|
||||||
params.topMargin = mContext.getResources().getDimensionPixelOffset(R.dimen.live_top);
|
|
||||||
params.addRule(RelativeLayout.ALIGN_TOP);
|
params.addRule(RelativeLayout.ALIGN_TOP);
|
||||||
mVideoView.setLayoutParams(params);
|
mVideoView.setLayoutParams(params);
|
||||||
mVideoView.requestLayout();
|
mVideoView.requestLayout();
|
||||||
@ -468,7 +467,6 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder {
|
|||||||
RelativeLayout.LayoutParams params1 = (RelativeLayout.LayoutParams) ry_view.getLayoutParams();
|
RelativeLayout.LayoutParams params1 = (RelativeLayout.LayoutParams) ry_view.getLayoutParams();
|
||||||
params1.height = height;
|
params1.height = height;
|
||||||
params1.topMargin = 0;
|
params1.topMargin = 0;
|
||||||
params1.topMargin = mContext.getResources().getDimensionPixelOffset(R.dimen.live_top);
|
|
||||||
ry_view.setLayoutParams(params1);
|
ry_view.setLayoutParams(params1);
|
||||||
ry_view.requestLayout();
|
ry_view.requestLayout();
|
||||||
RelativeLayout.LayoutParams params2 = (RelativeLayout.LayoutParams) mCover.getLayoutParams();
|
RelativeLayout.LayoutParams params2 = (RelativeLayout.LayoutParams) mCover.getLayoutParams();
|
||||||
|
Loading…
Reference in New Issue
Block a user