[Android] Fix external storage dialog background

Geoffrey Métais git at videolan.org
Mon Mar 11 17:59:58 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Mar 11 17:54:22 2019 +0100| [804737057f3adc4ae0115d0e546bae09572878b0] | committer: Geoffrey Métais

Fix external storage dialog background

> https://code.videolan.org/videolan/vlc-android/commit/804737057f3adc4ae0115d0e546bae09572878b0
---

 vlc-android/res/drawable/device_dialog_background.xml | 13 +++++++++++++
 vlc-android/res/layout/dialog_ext_device.xml          |  2 +-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/vlc-android/res/drawable/device_dialog_background.xml b/vlc-android/res/drawable/device_dialog_background.xml
new file mode 100644
index 000000000..aa1e63a14
--- /dev/null
+++ b/vlc-android/res/drawable/device_dialog_background.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+    <item
+        android:bottom="2dp"
+        android:top="2dp">
+        <shape xmlns:android="http://schemas.android.com/apk/res/android"
+            android:shape="rectangle">
+            <solid android:color="@color/grey850" />
+            <corners android:radius="3dp" />
+
+        </shape>
+    </item>
+</layer-list>
\ No newline at end of file
diff --git a/vlc-android/res/layout/dialog_ext_device.xml b/vlc-android/res/layout/dialog_ext_device.xml
index cccfef926..0029e94fc 100644
--- a/vlc-android/res/layout/dialog_ext_device.xml
+++ b/vlc-android/res/layout/dialog_ext_device.xml
@@ -10,7 +10,7 @@
     <androidx.constraintlayout.widget.ConstraintLayout
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:background="@drawable/rounded_corners_grey">
+        android:background="@drawable/device_dialog_background">
 
         <TextView
             android:id="@+id/ext_device_summary"



More information about the Android mailing list