[Android] Center dots menu in video list card

Geoffrey Métais git at videolan.org
Thu Nov 26 11:44:01 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Nov 26 11:34:26 2015 +0100| [6861412f05fb88dfd078b5fc069aaa91903203be] | committer: Geoffrey Métais

Center dots menu in video list card

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

 vlc-android/res/layout/video_list_card.xml |   56 ++++++++++++++--------------
 1 file changed, 27 insertions(+), 29 deletions(-)

diff --git a/vlc-android/res/layout/video_list_card.xml b/vlc-android/res/layout/video_list_card.xml
index b0da621..705d1a1 100644
--- a/vlc-android/res/layout/video_list_card.xml
+++ b/vlc-android/res/layout/video_list_card.xml
@@ -78,40 +78,38 @@
                 android:layout_height="match_parent"
                 android:orientation="vertical">
 
-                <LinearLayout
+                <TextView
+                    android:id="@+id/ml_item_title"
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
                     android:layout_alignParentTop="true"
-                    android:orientation="horizontal">
-
-                    <TextView
-                        android:id="@+id/ml_item_title"
-                        android:layout_width="0dp"
-                        android:layout_height="wrap_content"
-                        android:layout_weight="1"
-                        android:ellipsize="end"
-                        android:fontFamily="sans-serif-light"
-                        android:gravity="center_vertical"
-                        android:maxLines="2"
-                        android:paddingLeft="@dimen/half_default_margin"
-                        android:text="@{media.displayTitle}"
-                        android:textColor="?attr/list_title"
-                        android:textSize="17sp" />
-
-                    <ImageView
-                        android:id="@+id/item_more"
-                        android:layout_width="wrap_content"
-                        android:layout_height="wrap_content"
-                        android:clickable="true"
-                        android:contentDescription="@string/more_actions"
-                        android:onClick="@{handler.onMoreClick}"
-                        android:scaleType="fitCenter"
-                        android:src="@drawable/ic_more"
-                        android:tag="@{position}"
-                        android:visibility="@{group ? View.INVISIBLE : View.VISIBLE}" />
-                </LinearLayout>
+                    android:layout_alignParentLeft="true"
+                    android:layout_toLeftOf="@+id/item_more"
+                    android:ellipsize="end"
+                    android:fontFamily="sans-serif-light"
+                    android:gravity="center_vertical"
+                    android:maxLines="2"
+                    android:paddingLeft="@dimen/half_default_margin"
+                    android:text="@{media.displayTitle}"
+                    android:textColor="?attr/list_title"
+                    android:textSize="17sp" />
+
+                <ImageView
+                    android:id="@+id/item_more"
+                    android:layout_width="wrap_content"
+                    android:layout_height="match_parent"
+                    android:layout_alignParentRight="true"
+                    android:layout_above="@+id/info_layout"
+                    android:clickable="true"
+                    android:contentDescription="@string/more_actions"
+                    android:onClick="@{handler.onMoreClick}"
+                    android:scaleType="fitCenter"
+                    android:src="@drawable/ic_more"
+                    android:tag="@{position}"
+                    android:visibility="@{group ? View.INVISIBLE : View.VISIBLE}" />
 
                 <LinearLayout
+                    android:id="@+id/info_layout"
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
                     android:layout_alignParentBottom="true"



More information about the Android mailing list