[Android] Show the drop down menu icon in video grid view

Sébastien Toque git at videolan.org
Mon Dec 10 20:05:39 CET 2012


vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Mon Dec 10 19:17:36 2012 +0100| [272372bc95e282170de826148c0c2f2e4cd461bf] | committer: Sébastien Toque

Show the drop down menu icon in video grid view

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

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

diff --git a/vlc-android/res/layout/video_grid_item.xml b/vlc-android/res/layout/video_grid_item.xml
index 2c77d8d..ee69eb3 100644
--- a/vlc-android/res/layout/video_grid_item.xml
+++ b/vlc-android/res/layout/video_grid_item.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
+<RelativeLayout
     xmlns:android="http://schemas.android.com/apk/res/android"
     android:id="@+id/layout_item"
     android:layout_width="160dip"
@@ -9,6 +9,7 @@
     <LinearLayout
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
+        android:layout_alignParentTop="true"
         android:orientation="vertical"
         android:background="@drawable/dropshadow">
         <ImageView
@@ -30,8 +31,8 @@
     </LinearLayout>
     <LinearLayout
         android:layout_width="fill_parent"
-        android:layout_height="0dp"
-        android:layout_weight="1"
+        android:layout_height="wrap_content"
+        android:layout_alignParentBottom="true"
         android:orientation="vertical">
         <TextView
             android:id="@+id/ml_item_title"
@@ -50,4 +51,12 @@
             android:textSize="10dip"
             android:textColor="@color/list_subtitle" />
     </LinearLayout>
-</LinearLayout>
\ No newline at end of file
+    <ImageView
+        android:id="@+id/ml_item_more"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:src="@drawable/dropdown_ic_arrow"
+        android:layout_alignParentBottom="true"
+        android:layout_alignParentRight="true"
+        android:clickable="true" />
+</RelativeLayout>
\ No newline at end of file



More information about the Android mailing list