[Android] Fix audioplayer layout for black theme and RTL

Geoffrey Métais git at videolan.org
Thu Nov 3 11:34:24 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Nov  2 09:42:54 2016 +0100| [3fd2b68a6be776291dea1c98264ebe9106ba095a] | committer: Geoffrey Métais

Fix audioplayer layout for black theme and RTL

> https://code.videolan.org/videolan/vlc-android/commit/3fd2b68a6be776291dea1c98264ebe9106ba095a
---

 vlc-android/res/layout/audio_player.xml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/vlc-android/res/layout/audio_player.xml b/vlc-android/res/layout/audio_player.xml
index 76bc811..5211752 100644
--- a/vlc-android/res/layout/audio_player.xml
+++ b/vlc-android/res/layout/audio_player.xml
@@ -32,8 +32,8 @@
             android:layout_height="32dp"
             android:layout_gravity="center"
             android:layout_weight="0"
-            android:layout_marginLeft="@dimen/default_margin"
-            android:layout_marginRight="@dimen/half_default_margin"
+            android:layout_marginStart="@dimen/default_margin"
+            android:layout_marginEnd="@dimen/half_default_margin"
             android:background="#00000000"
             android:focusable="true"
             android:scaleType="fitXY"
@@ -52,7 +52,7 @@
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:id="@+id/playlist_search_text"
-            android:layout_marginRight="2dp"
+            android:layout_marginEnd="2dp"
             android:focusable="true"
             android:visibility="gone">
             <EditText
@@ -137,7 +137,7 @@
         android:layout_height="match_parent"
         android:layout_below="@+id/header"
         android:layout_above="@+id/player_controls"
-        android:background="?attr/background_default">
+        android:background="?attr/background_default_darker">
 
         <android.support.v7.widget.RecyclerView
             android:id="@+id/songs_list"
@@ -145,7 +145,7 @@
             android:layout_height="match_parent"
             android:clipToPadding="false"
             android:layout_gravity="center_horizontal"
-            android:background="@android:color/white"
+            android:background="?attr/background_default"
             android:paddingBottom="@dimen/listview_bottom_padding" />
 
         <org.videolan.vlc.gui.view.CoverMediaSwitcher



More information about the Android mailing list