[Android] Fix Playlist layout

Geoffrey Métais git at videolan.org
Wed May 4 13:10:28 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed May  4 12:54:43 2016 +0200| [3292a88bb59bb4f98cd4f9ae0e638dddbf4c7b98] | committer: Geoffrey Métais

Fix Playlist layout

> https://code.videolan.org/videolan/vlc-android/commit/3292a88bb59bb4f98cd4f9ae0e638dddbf4c7b98
---

 vlc-android/res/layout/audio_player.xml   | 2 +-
 vlc-android/res/values-sw600dp/styles.xml | 8 --------
 vlc-android/res/values-w800dp/dimens.xml  | 4 ++++
 vlc-android/res/values/dimens.xml         | 2 ++
 vlc-android/res/values/styles.xml         | 6 ------
 5 files changed, 7 insertions(+), 15 deletions(-)

diff --git a/vlc-android/res/layout/audio_player.xml b/vlc-android/res/layout/audio_player.xml
index 39be14d..a3e5fbb 100644
--- a/vlc-android/res/layout/audio_player.xml
+++ b/vlc-android/res/layout/audio_player.xml
@@ -139,7 +139,7 @@
 
         <android.support.v7.widget.RecyclerView
             android:id="@+id/songs_list"
-            style="@style/PlaylistStyle"
+            android:layout_width="@dimen/playlist_width"
             android:layout_height="match_parent"
             android:clipToPadding="false"
             android:layout_gravity="center_horizontal"
diff --git a/vlc-android/res/values-sw600dp/styles.xml b/vlc-android/res/values-sw600dp/styles.xml
deleted file mode 100644
index e101bd4..0000000
--- a/vlc-android/res/values-sw600dp/styles.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-    <!-- Playlist-->
-
-    <style name="PlaylistStyle">
-        <item name="android:layout_width">800dp</item>
-    </style>
-</resources>
\ No newline at end of file
diff --git a/vlc-android/res/values-w800dp/dimens.xml b/vlc-android/res/values-w800dp/dimens.xml
new file mode 100644
index 0000000..23f4a68
--- /dev/null
+++ b/vlc-android/res/values-w800dp/dimens.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <dimen name="playlist_width">800dp</dimen>
+</resources>
\ No newline at end of file
diff --git a/vlc-android/res/values/dimens.xml b/vlc-android/res/values/dimens.xml
index 22a0843..f5c3f16 100644
--- a/vlc-android/res/values/dimens.xml
+++ b/vlc-android/res/values/dimens.xml
@@ -46,6 +46,8 @@
     <!-- -1px is fill/match_parent -->
     <dimen name="file_picker_height">-1px</dimen>
 
+    <dimen name="playlist_width">-1px</dimen>
+
 
     <!-- Default -->
     <dimen name="default_margin">16dp</dimen>
diff --git a/vlc-android/res/values/styles.xml b/vlc-android/res/values/styles.xml
index 0e1bb16..a03561a 100644
--- a/vlc-android/res/values/styles.xml
+++ b/vlc-android/res/values/styles.xml
@@ -256,10 +256,4 @@
     <style name="TipsFontStyle.Small" parent="TipsFontStyle">
       <item name="android:textSize">10sp</item>
     </style>
-
-    <!-- Playlist-->
-
-    <style name="PlaylistStyle">
-      <item name="android:layout_width">match_parent</item>
-    </style>
 </resources>



More information about the Android mailing list