From 333ccedf8043336ee30bdd0b4c20e63352af523b Mon Sep 17 00:00:00 2001 From: insun Date: Mon, 17 Aug 2020 03:13:05 +0100 Subject: [PATCH] Improve error message and correct reference to proper layout PiperOrigin-RevId: 326944292 --- .../exoplayer2/ui/StyledPlayerView.java | 10 ++-- .../res/drawable/exo_rounded_rectangle.xml | 19 ++++++ .../layout/exo_styled_player_control_view.xml | 2 +- .../res/layout/exo_styled_player_view.xml | 60 ++++++++++++++++++- library/ui/src/main/res/values/colors.xml | 3 +- library/ui/src/main/res/values/dimens.xml | 6 ++ 6 files changed, 91 insertions(+), 9 deletions(-) create mode 100644 library/ui/src/main/res/drawable/exo_rounded_rectangle.xml diff --git a/library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerView.java b/library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerView.java index b89cdbf937..8b6c5983c6 100644 --- a/library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerView.java +++ b/library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerView.java @@ -192,10 +192,10 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull; *

Overriding the layout file

* * To customize the layout of StyledPlayerView throughout your app, or just for certain - * configurations, you can define {@code exo_player_view.xml} layout files in your application - * {@code res/layout*} directories. These layouts will override the one provided by the ExoPlayer - * library, and will be inflated for use by StyledPlayerView. The view identifies and binds its - * children by looking for the following ids: + * configurations, you can define {@code exo_styled_player_view.xml} layout files in your + * application {@code res/layout*} directories. These layouts will override the one provided by the + * ExoPlayer library, and will be inflated for use by StyledPlayerView. The view identifies and + * binds its children by looking for the following ids: * *