[Android] Improve context sheets display

Geoffrey Métais git at videolan.org
Wed Aug 8 11:39:20 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Aug  8 11:38:33 2018 +0200| [b77644b417cc3880986070a2846e35c8fd5ea0a8] | committer: Geoffrey Métais

Improve context sheets display

> https://code.videolan.org/videolan/vlc-android/commit/b77644b417cc3880986070a2846e35c8fd5ea0a8
---

 vlc-android/res/layout/context_item.xml | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/vlc-android/res/layout/context_item.xml b/vlc-android/res/layout/context_item.xml
index 517c4b01a..58c35b2d4 100644
--- a/vlc-android/res/layout/context_item.xml
+++ b/vlc-android/res/layout/context_item.xml
@@ -9,14 +9,15 @@
     <LinearLayout
         xmlns:android="http://schemas.android.com/apk/res/android"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content">
+        android:layout_height="wrap_content"
+        android:layout_marginTop="8dp"
+        android:layout_marginBottom="8dp">
         <ImageView
             android:id="@+id/context_option_icon"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
-
-            android:layout_marginStart="@dimen/default_margin"
-            android:layout_marginLeft="@dimen/default_margin"
+            android:layout_marginEnd="16dp"
+            android:layout_marginStart="16dp"
             android:visibility="@{option.icon != 0 ? View.VISIBLE : View.GONE, default=gone}"
             android:tint="@color/grey600"/>
         <TextView



More information about the Android mailing list