直播框高度调整,层级关系调整

This commit is contained in:
liujing
2020-10-29 16:37:25 +08:00
parent 8d71f0d0da
commit a8728174b1
7 changed files with 33 additions and 18 deletions

View File

@@ -5,6 +5,7 @@ import android.view.View;
import com.mogo.module.common.entity.V2XEventShowEntity;
import com.mogo.module.common.entity.V2XMessageEntity;
import com.mogo.module.v2x.R;
import com.mogo.module.v2x.V2XConst;
import com.mogo.module.v2x.V2XServiceManager;
import com.mogo.module.v2x.scenario.impl.AbsV2XScenario;
@@ -77,11 +78,11 @@ public class V2XRoadLiveCarScenario extends AbsV2XScenario<List<V2XEventShowEnti
public void showWindow() {
Log.d(TAG,getV2XWindow().toString());
if (getV2XWindow() != null) {
V2XServiceManager
.getMogoTopViewManager()
.addSubView(getV2XWindow().getView(), this);
getV2XWindow().show(getV2XMessageEntity().getContent());
V2XServiceManager.getMoGoV2XStatusManager().setRoadLiveCarWindowShow(TAG, true);
V2XServiceManager
.getIMogoWindowManager()
.addView(getV2XWindow().getView(), 0, 0, false);
V2XServiceManager.getMoGoV2XStatusManager().setV2XAnimationWindowShow(TAG, true);
}
}

View File

@@ -193,13 +193,10 @@ public class V2XRoadLiveCarWindow extends RelativeLayout
runnableV2XEvent = null;
}
if (V2XServiceManager
.getMogoTopViewManager().isViewAdded(this)) {
//移除窗体
V2XServiceManager
.getMogoTopViewManager()
.removeSubView(this);
}
//移除窗体
V2XServiceManager
.getIMogoWindowManager()
.removeView(this);
}
@Override