[Android] Fix browser layout for subs picker

Geoffrey Métais git at videolan.org
Thu Aug 9 16:58:19 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Aug  9 16:58:01 2018 +0200| [8f16250331effed0a52aeb6789c3a6eabc2f6e1b] | committer: Geoffrey Métais

Fix browser layout for subs picker

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

 vlc-android/res/layout/directory_browser.xml    | 8 ++++----
 vlc-android/res/layout/file_picker_activity.xml | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/vlc-android/res/layout/directory_browser.xml b/vlc-android/res/layout/directory_browser.xml
index 87a90a58f..7ee3ff2de 100644
--- a/vlc-android/res/layout/directory_browser.xml
+++ b/vlc-android/res/layout/directory_browser.xml
@@ -20,17 +20,17 @@
             <org.videolan.vlc.gui.view.SwipeRefreshLayout
                 android:id="@+id/swipeLayout"
                 android:layout_width="@dimen/default_content_width"
-                android:layout_height="0dp"
+                android:layout_height="wrap_content"
                 app:layout_constraintTop_toBottomOf="@+id/searchButton"
                 app:layout_constraintLeft_toLeftOf="parent"
                 app:layout_constraintRight_toRightOf="parent"
-                app:layout_constraintBottom_toBottomOf="parent"
-                app:layout_constraintHeight_default="spread" >
+                app:layout_constraintBottom_toBottomOf="parent" >
                 <android.support.v7.widget.RecyclerView
                     android:id="@+id/network_list"
                     android:layout_width="match_parent"
-                    android:layout_height="match_parent"
+                    android:layout_height="wrap_content"
                     android:background="?attr/background_default"
+                    app:layout_constraintHeight_default="spread"
                     android:visibility="gone"/>
             </org.videolan.vlc.gui.view.SwipeRefreshLayout>
             <TextView
diff --git a/vlc-android/res/layout/file_picker_activity.xml b/vlc-android/res/layout/file_picker_activity.xml
index c8bace40c..5331e80ae 100644
--- a/vlc-android/res/layout/file_picker_activity.xml
+++ b/vlc-android/res/layout/file_picker_activity.xml
@@ -11,7 +11,7 @@
         android:layout_height="48dp"
         android:layout_gravity="start|center_horizontal"
         android:contentDescription="@string/directories"
-        android:layout_marginLeft="2dp"
+        android:layout_marginStart="2dp"
         android:onClick="onHomeClick"
         tools:targetApi="11"
         android:src="@drawable/ic_browser_home_normal"



More information about the Android mailing list