[Android] Album cover better fits

Geoffrey Métais git at videolan.org
Tue Nov 18 14:20:04 CET 2014


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Oct 16 17:19:30 2014 +0200| [ebc02aa37ceff0a14787911818f974d86edb10f7] | committer: Geoffrey Métais

Album cover better fits

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=ebc02aa37ceff0a14787911818f974d86edb10f7
---

 vlc-android/res/layout/tv_audio_player.xml |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/vlc-android/res/layout/tv_audio_player.xml b/vlc-android/res/layout/tv_audio_player.xml
index 06793dc..1ec9e5e 100644
--- a/vlc-android/res/layout/tv_audio_player.xml
+++ b/vlc-android/res/layout/tv_audio_player.xml
@@ -7,7 +7,7 @@
         android:layout_width="match_parent"
         android:layout_height="match_parent"
         android:orientation="horizontal"
-        android:weightSum="3.0" >
+        android:weightSum="3" >
 
         <!-- Cover -->
         <ImageView
@@ -15,7 +15,9 @@
             android:layout_width="0dip"
             android:layout_height="match_parent"
             android:layout_weight="2"
-            android:src="@drawable/background_cone" >
+            android:padding="10dp"
+            android:src="@drawable/background_cone"
+            android:scaleType="fitXY" >
         </ImageView>
 
         <!-- Playlist -->
@@ -37,7 +39,8 @@
         android:paddingLeft="30dip"
         android:paddingTop="10dip"
         android:paddingBottom="5dip"
-        android:background="#33000000">
+        android:alpha="0.8"
+        android:background="@android:color/black">
         <TextView
             android:id="@+id/media_title"
 	        android:layout_width="wrap_content"



More information about the Android mailing list