[Android] Fix video player hud background

Nicolas Pomepuy git at videolan.org
Tue Aug 20 09:03:17 CEST 2019


vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Tue Aug 20 08:49:20 2019 +0200| [8d41cc47c0f43fec8a4442077141e2833a060799] | committer: Nicolas Pomepuy

Fix video player hud background

> https://code.videolan.org/videolan/vlc-android/commit/8d41cc47c0f43fec8a4442077141e2833a060799
---

 vlc-android/res/drawable/advanced_options_background.xml     | 12 ++++++++++++
 ...rners_light.xml => advanced_options_background_light.xml} |  0
 vlc-android/res/drawable/rounded_corners.xml                 |  8 +++-----
 vlc-android/res/values/styles.xml                            |  6 +++---
 4 files changed, 18 insertions(+), 8 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..66a364010
--- /dev/null
+++ b/vlc-android/res/drawable/advanced_options_background.xml
@@ -0,0 +1,12 @@
+<?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..ba4788473 100644
--- a/vlc-android/res/drawable/rounded_corners.xml
+++ b/vlc-android/res/drawable/rounded_corners.xml
@@ -1,12 +1,10 @@
 <?xml version="1.0" encoding="utf-8"?>
 <shape
-    xmlns:android="http://schemas.android.com/apk/res/android"
-    android:shape="rectangle">
+        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