[Android] GridView: stretch columns instead of spacing

Ludovic Fauvet git at videolan.org
Wed Oct 17 16:03:22 CEST 2012


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Wed Oct 17 16:01:19 2012 +0200| [7819ba78663bde8adcfa78ee5ae0eaa390b20983] | committer: Ludovic Fauvet

GridView: stretch columns instead of spacing

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

 vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
index a95f372..ecc8cbb 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
@@ -76,7 +76,7 @@ public class VideoGridFragment extends SherlockGridFragment implements ISortable
     private static final int GRID_ITEM_WIDTH_DP = 156;
     private static final int GRID_HORIZONTAL_SPACING_DP = 20;
     private static final int GRID_VERTICAL_SPACING_DP = 20;
-    private static final int GRID_STRETCH_MODE = GridView.STRETCH_SPACING;
+    private static final int GRID_STRETCH_MODE = GridView.STRETCH_COLUMN_WIDTH;
     private static final int LIST_HORIZONTAL_SPACING_DP = 0;
     private static final int LIST_VERTICAL_SPACING_DP = 10;
     private static final int LIST_STRETCH_MODE = GridView.STRETCH_COLUMN_WIDTH;



More information about the Android mailing list