调整直播间重制UI

This commit is contained in:
zlzw 2022-11-16 16:12:57 +08:00
parent dc8f32062c
commit a4ab6df974
8 changed files with 33 additions and 0 deletions

View File

@ -496,4 +496,8 @@ public class LiveLinkMicAnchorPresenter implements View.OnClickListener {
mLastApplyLinkMicTime = 0; mLastApplyLinkMicTime = 0;
DialogUitl.showSimpleTipDialog(mContext, WordUtil.getString(R.string.link_mic_play_game)); DialogUitl.showSimpleTipDialog(mContext, WordUtil.getString(R.string.link_mic_play_game));
} }
public void setLiveSdk(int mLiveSDK) {
this.mLiveSdk=mLiveSDK;
}
} }

View File

@ -856,4 +856,7 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
mLiveLinkMicPushViewHolder = null; mLiveLinkMicPushViewHolder = null;
} }
public void setLiveSdk(int mLiveSDK) {
this.mLiveSdk=mLiveSDK;
}
} }

View File

@ -249,6 +249,11 @@ public class LivePlayKsyViewHolder extends LiveRoomPlayViewHolder {
} }
} }
@Override
public void setLiveBeanLandscape(int landscape) {
LivePlayKsyViewHolder.landscape =landscape;
}
@Override @Override
public ViewGroup getSmallContainer() { public ViewGroup getSmallContainer() {

View File

@ -164,6 +164,11 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder {
} }
} }
@Override
public void setLiveBeanLandscape(int landscape) {
LivePlayRyViewHolder.landscape =landscape;
}
/** /**
* 暂停播放 * 暂停播放
*/ */

View File

@ -79,6 +79,10 @@ public class LivePlayTxViewHolder extends LiveRoomPlayViewHolder implements ITXL
} }
@Override
public void setLiveBeanLandscape(int landscape) {
}
@Override @Override
protected int getLayoutId() { protected int getLayoutId() {
return R.layout.view_live_play_tx; return R.layout.view_live_play_tx;

View File

@ -67,6 +67,11 @@ public class LivePlayTxViewHolder_backup extends LiveRoomPlayViewHolder implemen
} }
@Override
public void setLiveBeanLandscape(int landscape) {
}
public LivePlayTxViewHolder_backup(Context context, ViewGroup parentView) { public LivePlayTxViewHolder_backup(Context context, ViewGroup parentView) {
super(context, parentView); super(context, parentView);
} }

View File

@ -39,4 +39,6 @@ public abstract class LiveRoomPlayViewHolder extends AbsViewHolder implements IL
public abstract void setPkview(); public abstract void setPkview();
public abstract void setPkEndview(); public abstract void setPkEndview();
public abstract void setLiveBeanLandscape(int landscape);
} }

View File

@ -258,6 +258,11 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
mLiveAudienceViewHolder.addToParent(); mLiveAudienceViewHolder.addToParent();
mLiveRoomViewHolder.addToParent(); mLiveRoomViewHolder.addToParent();
mLiveAudienceViewHolder.subscribeActivityLifeCycle(); mLiveAudienceViewHolder.subscribeActivityLifeCycle();
}else{
mLivePlayViewHolder.setLiveBeanLandscape(mLiveBean.getLandscape());
mLiveLinkMicPresenter.setLiveSdk(mLiveSDK);
mLiveLinkMicAnchorPresenter.setLiveSdk(mLiveSDK);
} }
//直播间背景 //直播间背景
ImgLoader.displayBlurLive(mContext, mLiveBean.getAvatar(), liveBack, 400, 600); ImgLoader.displayBlurLive(mContext, mLiveBean.getAvatar(), liveBack, 400, 600);