[Android] Fix video player hud background
Nicolas Pomepuy
git at videolan.org
Tue Aug 27 13:01:44 CEST 2019
vlc-android | branch: 3.2.x | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Tue Aug 20 08:49:20 2019 +0200| [6e5b9dac127f44d9f5d13f8971589e6109a45bfb] | committer: Nicolas Pomepuy
Fix video player hud background
(cherry picked from commit 8d41cc47c0f43fec8a4442077141e2833a060799)
> https://code.videolan.org/videolan/vlc-android/commit/6e5b9dac127f44d9f5d13f8971589e6109a45bfb
---
vlc-android/res/drawable/advanced_options_background.xml | 9 +++++++++
...d_corners_light.xml => advanced_options_background_light.xml} | 0
vlc-android/res/drawable/rounded_corners.xml | 9 +++------
vlc-android/res/values/styles.xml | 6 +++---
4 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/vlc-android/res/drawable/advanced_options_background.xml b/vlc-android/res/drawable/advanced_options_background.xml
new file mode 100644
index 000000000..3ebd05f5a
--- /dev/null
+++ b/vlc-android/res/drawable/advanced_options_background.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="rectangle">
+ <solid android:color="@color/playerbackground"></solid>
+ <corners
+ android:topLeftRadius="4dp"
+ android:bottomLeftRadius="4dp"></corners>
+
+</shape>
diff --git a/vlc-android/res/drawable/rounded_corners_light.xml b/vlc-android/res/drawable/advanced_options_background_light.xml
similarity index 100%
rename from vlc-android/res/drawable/rounded_corners_light.xml
rename to vlc-android/res/drawable/advanced_options_background_light.xml
diff --git a/vlc-android/res/drawable/rounded_corners.xml b/vlc-android/res/drawable/rounded_corners.xml
index 4e264e721..400dabd42 100644
--- a/vlc-android/res/drawable/rounded_corners.xml
+++ b/vlc-android/res/drawable/rounded_corners.xml
@@ -1,12 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
-<shape
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:shape="rectangle">
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="rectangle">
<solid android:color="@color/playerbackground">
</solid>
- <corners
- android:topLeftRadius="4dp"
- android:bottomLeftRadius="4dp">
+ <corners android:radius="5dp">
</corners>
</shape>
\ No newline at end of file
diff --git a/vlc-android/res/values/styles.xml b/vlc-android/res/values/styles.xml
index 34316f214..8ee63569b 100644
--- a/vlc-android/res/values/styles.xml
+++ b/vlc-android/res/values/styles.xml
@@ -71,7 +71,7 @@
<item name="gridview_progressbar">@drawable/gridview_progressbar</item>
<item name="progress_mini_player">@drawable/progress_mini_player</item>
<item name="advanced_options_style">@style/Theme.MaterialComponents.Light.Dialog</item>
- <item name="advanced_options_bg">@drawable/rounded_corners_light</item>
+ <item name="advanced_options_bg">@drawable/advanced_options_background_light</item>
<item name="ic_playasaudio_off">@drawable/ic_playasaudio_off</item>
<item name="ic_playasaudio_on">@drawable/ic_playasaudio_on</item>
<item name="ic_popup_expand">@drawable/ic_popup_expand</item>
@@ -182,7 +182,7 @@
<item name="gridview_progressbar">@drawable/gridview_progressbar_w</item>
<item name="progress_mini_player">@drawable/progress_mini_player_dark</item>
<item name="advanced_options_style">@style/Theme.MaterialComponents.Dialog</item>
- <item name="advanced_options_bg">@drawable/rounded_corners</item>
+ <item name="advanced_options_bg">@drawable/advanced_options_background</item>
<item name="ic_playasaudio_off">@drawable/ic_playasaudio_off_w</item>
<item name="ic_playasaudio_on">@drawable/ic_playasaudio_on_w</item>
<item name="ic_popup_expand">@drawable/ic_popup_expand_w</item>
@@ -330,7 +330,7 @@
<item name="colorAccent">@color/orange500</item>
<item name="background_default">@color/grey850</item>
- <item name="advanced_options_bg">@drawable/rounded_corners</item>
+ <item name="advanced_options_bg">@drawable/advanced_options_background</item>
<item name="advanced_options_style">@style/Theme.MaterialComponents.Dialog</item>
<item name="ic_playasaudio_on">@drawable/ic_playasaudio_on_w</item>
<item name="ic_popup_dim">@drawable/ic_popup_dim_w</item>
More information about the Android
mailing list