[ADS] Add adOverlayFrameLayout in layout instead of view
This commit is contained in:
parent
0a30f207df
commit
8ee6ad9900
@ -83,13 +83,13 @@ public final class ExoPlayerView extends FrameLayout implements AdViewProvider {
|
|||||||
|
|
||||||
updateSurfaceView();
|
updateSurfaceView();
|
||||||
|
|
||||||
layout.addView(shutterView, 1, layoutParams);
|
|
||||||
layout.addView(subtitleLayout, 2, layoutParams);
|
|
||||||
|
|
||||||
adOverlayFrameLayout = new FrameLayout(context);
|
adOverlayFrameLayout = new FrameLayout(context);
|
||||||
|
|
||||||
|
layout.addView(shutterView, 1, layoutParams);
|
||||||
|
layout.addView(subtitleLayout, 2, layoutParams);
|
||||||
|
layout.addView(adOverlayFrameLayout, 3, layoutParams);
|
||||||
|
|
||||||
addViewInLayout(layout, 0, aspectRatioParams);
|
addViewInLayout(layout, 0, aspectRatioParams);
|
||||||
addViewInLayout(adOverlayFrameLayout, 1, layoutParams);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void clearVideoView() {
|
private void clearVideoView() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user