[Android] Set margins to audio layouts

Geoffrey Métais git at videolan.org
Tue Jan 22 11:54:46 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jan 22 11:02:13 2019 +0100| [b91d79c7b3ebf864d4187f68352e3a514b3769f9] | committer: Geoffrey Métais

Set margins to audio layouts

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

 vlc-android/res/layout/audio_browser.xml      | 11 ++++-------
 vlc-android/res/layout/audio_browser_item.xml |  6 +++---
 vlc-android/res/values/dimens.xml             |  2 +-
 3 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/vlc-android/res/layout/audio_browser.xml b/vlc-android/res/layout/audio_browser.xml
index fe9eb6d5b..d94f109ef 100644
--- a/vlc-android/res/layout/audio_browser.xml
+++ b/vlc-android/res/layout/audio_browser.xml
@@ -3,19 +3,14 @@
     xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:app="http://schemas.android.com/apk/res-auto"
     android:layout_width="match_parent"
-    android:layout_height="match_parent">
+    android:layout_height="match_parent" >
 
     <include layout="@layout/button_search"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         app:layout_constraintLeft_toLeftOf="parent"
         app:layout_constraintRight_toRightOf="parent"
-        app:layout_constraintTop_toTopOf="parent"
-        android:layout_marginTop="@dimen/default_margin"
-        android:layout_marginLeft="@dimen/default_margin"
-        android:layout_marginStart="@dimen/default_margin"
-        android:layout_marginRight="@dimen/default_margin"
-        android:layout_marginEnd="@dimen/default_margin" />
+        app:layout_constraintTop_toTopOf="parent" />
 
     <org.videolan.vlc.gui.view.SwipeRefreshLayout
         android:id="@+id/swipeLayout"
@@ -30,6 +25,8 @@
             android:id="@+id/pager"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
+            android:layout_marginLeft="4dp"
+            android:layout_marginRight="4dp"
             app:layout_constraintTop_toBottomOf="@+id/searchButton"
             app:layout_constraintBottom_toBottomOf="parent" >
             <include layout="@layout/audio_recyclerview" />
diff --git a/vlc-android/res/layout/audio_browser_item.xml b/vlc-android/res/layout/audio_browser_item.xml
index e92c3c767..d65edfada 100644
--- a/vlc-android/res/layout/audio_browser_item.xml
+++ b/vlc-android/res/layout/audio_browser_item.xml
@@ -40,7 +40,7 @@
             android:id="@+id/section_header"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:paddingLeft="28dp"
+            android:paddingLeft="24dp"
             android:paddingTop="8dp"
             android:paddingRight="28dp"
             android:paddingBottom="8dp"
@@ -57,7 +57,7 @@
             android:id="@+id/media_cover"
             android:layout_height="@dimen/audio_browser_item_size"
             android:layout_width="0dp"
-            android:layout_marginStart="20dp"
+            android:layout_marginStart="16dp"
             vlc:layout_constraintDimensionRatio="1"
             vlc:layout_constraintTop_toBottomOf="@+id/section_header"
             vlc:layout_constraintStart_toStartOf="parent"
@@ -104,7 +104,7 @@
             android:id="@+id/item_more"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
-            android:layout_marginEnd="20dp"
+            android:layout_marginEnd="16dp"
             vlc:layout_constraintEnd_toEndOf="parent"
             vlc:layout_constraintTop_toTopOf="@+id/title"
             vlc:layout_constraintBottom_toBottomOf="@+id/subtitle"
diff --git a/vlc-android/res/values/dimens.xml b/vlc-android/res/values/dimens.xml
index 54fa0b19e..7a06b6008 100644
--- a/vlc-android/res/values/dimens.xml
+++ b/vlc-android/res/values/dimens.xml
@@ -86,6 +86,6 @@
     <dimen name="subs_dl_dialog_height">170dp</dimen>
     <dimen name="player_option_width">224dp</dimen>
 
-    <dimen name="default_margin_plus_audio_margin">28dp</dimen>
+    <dimen name="default_margin_plus_audio_margin">24dp</dimen>
     <dimen name="audio_player_seekbar_bottom_margin">16dp</dimen>
 </resources>
\ No newline at end of file



More information about the Android mailing list