[Android] Fix TitleListView margins

Nicolas Pomepuy git at videolan.org
Thu May 14 15:04:04 CEST 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue May 12 09:37:57 2020 +0200| [b9b138f1d1ad7ba2e9137d25b84c218673a89b4c] | committer: Nicolas Pomepuy

Fix TitleListView margins

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

 application/vlc-android/res/layout/main_browser_fragment.xml | 10 ++++++----
 application/vlc-android/res/layout/more_fragment.xml         |  1 +
 application/vlc-android/res/layout/title_list_view.xml       |  2 +-
 3 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/application/vlc-android/res/layout/main_browser_fragment.xml b/application/vlc-android/res/layout/main_browser_fragment.xml
index 0529b8b3b..aa620a0a4 100644
--- a/application/vlc-android/res/layout/main_browser_fragment.xml
+++ b/application/vlc-android/res/layout/main_browser_fragment.xml
@@ -42,21 +42,23 @@
 
         <org.videolan.vlc.gui.view.TitleListView
                 android:id="@+id/local_browser_entry"
-                app:title="@string/browser_storages"
                 android:layout_width="0dp"
                 android:layout_height="wrap_content"
+                android:layout_marginTop="16dp"
                 app:layout_constraintEnd_toEndOf="parent"
                 app:layout_constraintStart_toStartOf="parent"
-                app:layout_constraintTop_toBottomOf="@+id/fav_browser_entry" />
+                app:layout_constraintTop_toBottomOf="@+id/fav_browser_entry"
+                app:title="@string/browser_storages" />
 
         <org.videolan.vlc.gui.view.TitleListView
                 android:id="@+id/network_browser_entry"
-                app:title="@string/network_browsing"
                 android:layout_width="0dp"
                 android:layout_height="wrap_content"
+                android:layout_marginTop="16dp"
                 app:layout_constraintEnd_toEndOf="parent"
                 app:layout_constraintStart_toStartOf="parent"
-                app:layout_constraintTop_toBottomOf="@+id/local_browser_entry" />
+                app:layout_constraintTop_toBottomOf="@+id/local_browser_entry"
+                app:title="@string/network_browsing" />
 
 
     </androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/application/vlc-android/res/layout/more_fragment.xml b/application/vlc-android/res/layout/more_fragment.xml
index 008d24a3b..58a401bfc 100644
--- a/application/vlc-android/res/layout/more_fragment.xml
+++ b/application/vlc-android/res/layout/more_fragment.xml
@@ -87,6 +87,7 @@
                         android:id="@+id/history_entry"
                         android:layout_width="0dp"
                         android:layout_height="wrap_content"
+                        android:layout_marginTop="16dp"
                         app:layout_constraintEnd_toEndOf="parent"
                         app:layout_constraintStart_toStartOf="parent"
                         app:layout_constraintTop_toBottomOf="@+id/streams_entry"
diff --git a/application/vlc-android/res/layout/title_list_view.xml b/application/vlc-android/res/layout/title_list_view.xml
index 6bd5180df..e6ca67db6 100644
--- a/application/vlc-android/res/layout/title_list_view.xml
+++ b/application/vlc-android/res/layout/title_list_view.xml
@@ -44,7 +44,7 @@
             android:layout_height="wrap_content"
             style="@style/Theme.VLC.HorizontalListTitle"
             android:layout_marginStart="16dp"
-            android:layout_marginTop="24dp"
+            android:layout_marginTop="16dp"
             app:layout_constraintStart_toStartOf="parent"
             app:layout_constraintTop_toTopOf="parent" />
 



More information about the Android mailing list