[Android] GridView: add padding on bottom/top

Ludovic Fauvet git at videolan.org
Tue Oct 9 16:28:09 CEST 2012


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Tue Oct  9 13:27:02 2012 +0200| [391273b43a17a8eadef65c14a34eb2010879623a] | committer: Ludovic Fauvet

GridView: add padding on bottom/top

clipToPadding is required to include the padding space into the
scrollable area.

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

 vlc-android/res/layout/video_grid.xml |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/vlc-android/res/layout/video_grid.xml b/vlc-android/res/layout/video_grid.xml
index c20ea3d..b914550 100644
--- a/vlc-android/res/layout/video_grid.xml
+++ b/vlc-android/res/layout/video_grid.xml
@@ -10,6 +10,9 @@
         android:layout_height="fill_parent"
         android:paddingLeft="20dip"
         android:paddingRight="20dip"
+        android:paddingTop="10dip"
+        android:paddingBottom="10dip"
+        android:clipToPadding="false"
         android:scrollbarStyle="outsideInset"
         android:numColumns="auto_fit"
         android:fastScrollEnabled="true"



More information about the Android mailing list