[Android] UI : Material freak alignment

Alexandre Perraud git at videolan.org
Mon Mar 30 18:48:49 CEST 2015


vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Mon Mar 30 18:47:29 2015 +0200| [94cfc18582112fbf081ae1620ae7e76b98add4ba] | committer: Alexandre Perraud

UI : Material freak alignment

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

 vlc-android/res/layout/sidebar.xml      |   24 ++++++++++++------------
 vlc-android/res/layout/sidebar_item.xml |    9 ++++-----
 vlc-android/res/layout/toolbar.xml      |    3 ++-
 3 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/vlc-android/res/layout/sidebar.xml b/vlc-android/res/layout/sidebar.xml
index d0b368f..f15a0d1 100644
--- a/vlc-android/res/layout/sidebar.xml
+++ b/vlc-android/res/layout/sidebar.xml
@@ -32,10 +32,10 @@
         android:layout_height="32dp"
         android:layout_alignParentLeft="true"
         android:layout_above="@+id/about_icon"
-        android:layout_marginLeft="10dp"
-        android:layout_marginTop="10dp"
-        android:layout_marginBottom="10dp"
-        android:layout_marginRight="5dp"
+        android:layout_marginLeft="@dimen/default_margin"
+        android:layout_marginTop="8dp"
+        android:layout_marginBottom="8dp"
+        android:layout_marginRight="24dp"
         android:clickable="true"
         android:onClick="onClick"
         android:src="?attr/ic_menu_preferences"/>
@@ -47,8 +47,8 @@
         android:layout_toRightOf="@+id/settings_icon"
         android:layout_above="@+id/about_icon"
         android:gravity="left|center_vertical"
-        android:layout_marginTop="10dp"
-        android:layout_marginBottom="10dp"
+        android:layout_marginTop="8dp"
+        android:layout_marginBottom="8dp"
         android:clickable="true"
         android:onClick="onClick"
         android:focusable="true"
@@ -64,10 +64,10 @@
         android:layout_height="32dp"
         android:layout_alignParentLeft="true"
         android:layout_alignParentBottom="true"
-        android:layout_marginLeft="10dp"
-        android:layout_marginTop="10dp"
-        android:layout_marginBottom="10dp"
-        android:layout_marginRight="5dp"
+        android:layout_marginLeft="@dimen/default_margin"
+        android:layout_marginTop="8dp"
+        android:layout_marginBottom="8dp"
+        android:layout_marginRight="24dp"
         android:clickable="true"
         android:onClick="onClick"
         android:src="?attr/ic_menu_cone"/>
@@ -79,8 +79,8 @@
         android:layout_toRightOf="@+id/about_icon"
         android:layout_alignParentBottom="true"
         android:gravity="left|center_vertical"
-        android:layout_marginTop="10dp"
-        android:layout_marginBottom="10dp"
+        android:layout_marginTop="8dp"
+        android:layout_marginBottom="8dp"
         android:clickable="true"
         android:focusable="true"
         android:onClick="onClick"
diff --git a/vlc-android/res/layout/sidebar_item.xml b/vlc-android/res/layout/sidebar_item.xml
index 1b304e0..7675c0b 100644
--- a/vlc-android/res/layout/sidebar_item.xml
+++ b/vlc-android/res/layout/sidebar_item.xml
@@ -3,13 +3,12 @@
     android:id="@+id/title"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
-    android:layout_marginLeft="5dip"
-    android:layout_marginRight="5dip"
-    android:layout_marginTop="5dip"
     android:drawableLeft="@drawable/icon"
-    android:drawablePadding="5dip"
+    android:drawablePadding="24dip"
     android:gravity="left|center_vertical"
-    android:padding="10dip"
+    android:paddingTop="8dp"
+    android:paddingBottom="8dp"
+    android:paddingLeft="@dimen/default_margin"
     android:text="@string/title"
     android:textColor="?attr/list_menu"
     android:textSize="16sp" />
diff --git a/vlc-android/res/layout/toolbar.xml b/vlc-android/res/layout/toolbar.xml
index 8f954b4..1140180 100644
--- a/vlc-android/res/layout/toolbar.xml
+++ b/vlc-android/res/layout/toolbar.xml
@@ -9,4 +9,5 @@
     app:theme="@style/Toolbar.VLC"
     app:popupTheme="?attr/toolbar_popup_style"
     android:background="?attr/background_actionbar"
-    app:navigationIcon="?attr/homeAsUpIndicator"/>
\ No newline at end of file
+    app:navigationIcon="?attr/homeAsUpIndicator"
+    app:titleMarginStart="@dimen/default_margin"/>
\ No newline at end of file



More information about the Android mailing list