From ef139b2e31c921b7111000a171054594256c19dc Mon Sep 17 00:00:00 2001 From: andrewlewis Date: Fri, 8 Feb 2019 17:54:27 +0000 Subject: [PATCH] Add an overlay FrameLayout for ad UI This will be used instead of the current overlay FrameLayout (which apps can interact with directly). PiperOrigin-RevId: 233077175 --- .../google/android/exoplayer2/ui/PlayerView.java | 13 ++++++++++++- .../src/main/res/layout/exo_simple_player_view.xml | 4 ++++ library/ui/src/main/res/values/ids.xml | 1 + 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerView.java b/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerView.java index 9742d0005a..8871767f49 100644 --- a/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerView.java +++ b/library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerView.java @@ -221,6 +221,11 @@ import java.util.List; * + *
  • {@code exo_ad_overlay} - A {@link FrameLayout} positioned on top of the player which + * is used to show ad UI (if applicable). + * *
  • {@code exo_overlay} - A {@link FrameLayout} positioned on top of the player which * the app can access via {@link #getOverlayFrameLayout()}, provided for convenience. *