[Android] gridview: draw a drop shadow around thumbnails using a nine-patch

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:21:45 2012 +0200| [d632d5f4a66c8cc8acdcea57e3071ae4b2bf7cc2] | committer: Ludovic Fauvet

gridview: draw a drop shadow around thumbnails using a nine-patch

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

 vlc-android/res/drawable/dropshadow.9.png  |  Bin 0 -> 350 bytes
 vlc-android/res/layout/video_grid_item.xml |    2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/res/drawable/dropshadow.9.png b/vlc-android/res/drawable/dropshadow.9.png
new file mode 100644
index 0000000..735a186
Binary files /dev/null and b/vlc-android/res/drawable/dropshadow.9.png differ
diff --git a/vlc-android/res/layout/video_grid_item.xml b/vlc-android/res/layout/video_grid_item.xml
index 51a9d18..9d11b59 100644
--- a/vlc-android/res/layout/video_grid_item.xml
+++ b/vlc-android/res/layout/video_grid_item.xml
@@ -12,7 +12,7 @@
         android:layout_height="100dip"
         android:scaleType="fitCenter"
         android:layout_gravity="center_horizontal"
-        android:background="@android:color/black" />
+        android:background="@drawable/dropshadow" />
     <LinearLayout
         android:layout_width="fill_parent"
         android:layout_height="0dp"



More information about the Android mailing list