[Android] Set margin around cover in audio player

Geoffrey Métais git at videolan.org
Fri Feb 17 17:00:03 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Feb 17 16:44:12 2017 +0100| [1f99ff4955524a46dd180ffe3966b7e592babf98] | committer: Geoffrey Métais

Set margin around cover in audio player

> https://code.videolan.org/videolan/vlc-android/commit/1f99ff4955524a46dd180ffe3966b7e592babf98
---

 vlc-android/res/layout/audio_player.xml   | 5 ++++-
 vlc-android/res/values-sw600dp/dimens.xml | 1 +
 vlc-android/res/values/dimens.xml         | 1 +
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/vlc-android/res/layout/audio_player.xml b/vlc-android/res/layout/audio_player.xml
index e352bba..a7b55be 100644
--- a/vlc-android/res/layout/audio_player.xml
+++ b/vlc-android/res/layout/audio_player.xml
@@ -166,7 +166,10 @@
             android:id="@+id/cover_media_switcher"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
-            android:padding="@dimen/default_margin"
+            android:layout_marginLeft="@dimen/audio_player_cover_margin"
+            android:layout_marginRight="@dimen/audio_player_cover_margin"
+            android:layout_marginTop="@dimen/default_margin"
+            android:layout_marginBottom="@dimen/default_margin"
             android:layout_centerHorizontal="true"
             android:layout_below="@+id/header"
             android:layout_above="@+id/player_controls"
diff --git a/vlc-android/res/values-sw600dp/dimens.xml b/vlc-android/res/values-sw600dp/dimens.xml
index e7ba1d6..d6c0165 100644
--- a/vlc-android/res/values-sw600dp/dimens.xml
+++ b/vlc-android/res/values-sw600dp/dimens.xml
@@ -10,4 +10,5 @@
     <dimen name="overlay_margin">10dp</dimen>
 
     <dimen name="file_picker_width">600dip</dimen>
+    <dimen name="audio_player_cover_margin">60dp</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 19dbee3..78b0026 100644
--- a/vlc-android/res/values/dimens.xml
+++ b/vlc-android/res/values/dimens.xml
@@ -69,4 +69,5 @@
     <dimen name="fastscroller_track_height">30dp</dimen>
     <dimen name="fastscroller_track_width">6dp</dimen>
     <dimen name="fastscroller_track_padding">5dp</dimen>
+    <dimen name="audio_player_cover_margin">30dp</dimen>
 </resources>
\ No newline at end of file



More information about the Android mailing list