调整直播间重制UI
This commit is contained in:
parent
dc8f32062c
commit
a4ab6df974
@ -496,4 +496,8 @@ public class LiveLinkMicAnchorPresenter implements View.OnClickListener {
|
||||
mLastApplyLinkMicTime = 0;
|
||||
DialogUitl.showSimpleTipDialog(mContext, WordUtil.getString(R.string.link_mic_play_game));
|
||||
}
|
||||
|
||||
public void setLiveSdk(int mLiveSDK) {
|
||||
this.mLiveSdk=mLiveSDK;
|
||||
}
|
||||
}
|
||||
|
@ -856,4 +856,7 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
||||
mLiveLinkMicPushViewHolder = null;
|
||||
}
|
||||
|
||||
public void setLiveSdk(int mLiveSDK) {
|
||||
this.mLiveSdk=mLiveSDK;
|
||||
}
|
||||
}
|
||||
|
@ -249,6 +249,11 @@ public class LivePlayKsyViewHolder extends LiveRoomPlayViewHolder {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setLiveBeanLandscape(int landscape) {
|
||||
LivePlayKsyViewHolder.landscape =landscape;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public ViewGroup getSmallContainer() {
|
||||
|
@ -164,6 +164,11 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setLiveBeanLandscape(int landscape) {
|
||||
LivePlayRyViewHolder.landscape =landscape;
|
||||
}
|
||||
|
||||
/**
|
||||
* 暂停播放
|
||||
*/
|
||||
|
@ -79,6 +79,10 @@ public class LivePlayTxViewHolder extends LiveRoomPlayViewHolder implements ITXL
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setLiveBeanLandscape(int landscape) {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.view_live_play_tx;
|
||||
|
@ -67,6 +67,11 @@ public class LivePlayTxViewHolder_backup extends LiveRoomPlayViewHolder implemen
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setLiveBeanLandscape(int landscape) {
|
||||
|
||||
}
|
||||
|
||||
public LivePlayTxViewHolder_backup(Context context, ViewGroup parentView) {
|
||||
super(context, parentView);
|
||||
}
|
||||
|
@ -39,4 +39,6 @@ public abstract class LiveRoomPlayViewHolder extends AbsViewHolder implements IL
|
||||
public abstract void setPkview();
|
||||
|
||||
public abstract void setPkEndview();
|
||||
|
||||
public abstract void setLiveBeanLandscape(int landscape);
|
||||
}
|
||||
|
@ -258,6 +258,11 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
mLiveAudienceViewHolder.addToParent();
|
||||
mLiveRoomViewHolder.addToParent();
|
||||
mLiveAudienceViewHolder.subscribeActivityLifeCycle();
|
||||
}else{
|
||||
mLivePlayViewHolder.setLiveBeanLandscape(mLiveBean.getLandscape());
|
||||
mLiveLinkMicPresenter.setLiveSdk(mLiveSDK);
|
||||
mLiveLinkMicAnchorPresenter.setLiveSdk(mLiveSDK);
|
||||
|
||||
}
|
||||
//直播间背景
|
||||
ImgLoader.displayBlurLive(mContext, mLiveBean.getAvatar(), liveBack, 400, 600);
|
||||
|
Loading…
Reference in New Issue
Block a user