[Android] gridview: fix the aspect ratio of the thumbnails

Ludovic Fauvet git at videolan.org
Tue Oct 9 18:23:54 CEST 2012


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Tue Oct  9 18:19:47 2012 +0200| [89541e2dbd2e4f3c7b5d5a8ffc0b833ab6a7a014] | committer: Ludovic Fauvet

gridview: fix the aspect ratio of the thumbnails

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

 vlc-android/res/layout/video_grid_item.xml |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/vlc-android/res/layout/video_grid_item.xml b/vlc-android/res/layout/video_grid_item.xml
index 96e4fd2..51a9d18 100644
--- a/vlc-android/res/layout/video_grid_item.xml
+++ b/vlc-android/res/layout/video_grid_item.xml
@@ -2,15 +2,15 @@
 <LinearLayout
     xmlns:android="http://schemas.android.com/apk/res/android"
     android:id="@+id/layout_item"
-    android:layout_width="156dip"
+    android:layout_width="160dip"
     android:layout_height="150dip"
     android:orientation="vertical"
     android:gravity="center_vertical">
     <ImageView
         android:id="@+id/ml_item_thumbnail"
-        android:layout_width="156dip"
-        android:layout_height="104dip"
-        android:scaleType="centerCrop"
+        android:layout_width="160dip"
+        android:layout_height="100dip"
+        android:scaleType="fitCenter"
         android:layout_gravity="center_horizontal"
         android:background="@android:color/black" />
     <LinearLayout



More information about the Android mailing list