[Android] Reorganize browser layout

Geoffrey Métais git at videolan.org
Wed Aug 8 12:33:22 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Aug  8 12:32:35 2018 +0200| [0bf5d79614ea1864f88d03bf917a6b7cedafd4cc] | committer: Geoffrey Métais

Reorganize browser layout

Prevents crash with some special UI layouting, like hideable navbar

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

 vlc-android/res/layout/directory_browser.xml | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/vlc-android/res/layout/directory_browser.xml b/vlc-android/res/layout/directory_browser.xml
index bc35fafb6..87a90a58f 100644
--- a/vlc-android/res/layout/directory_browser.xml
+++ b/vlc-android/res/layout/directory_browser.xml
@@ -7,10 +7,6 @@
             name="showFavorites"
             type="boolean" />
     </data>
-    <org.videolan.vlc.gui.view.SwipeRefreshLayout
-        android:id="@+id/swipeLayout"
-        android:layout_width="match_parent"
-        android:layout_height="match_parent" >
         <android.support.constraint.ConstraintLayout
             android:layout_width="match_parent"
             android:layout_height="match_parent" >
@@ -21,17 +17,22 @@
                 app:layout_constraintRight_toRightOf="parent"
                 app:layout_constraintTop_toTopOf="parent"
                 android:background="?attr/background_default" />
-            <android.support.v7.widget.RecyclerView
-                android:id="@+id/network_list"
+            <org.videolan.vlc.gui.view.SwipeRefreshLayout
+                android:id="@+id/swipeLayout"
                 android:layout_width="@dimen/default_content_width"
                 android:layout_height="0dp"
-                app:layout_constraintHeight_default="spread"
-                android:background="?attr/background_default"
                 app:layout_constraintTop_toBottomOf="@+id/searchButton"
                 app:layout_constraintLeft_toLeftOf="parent"
                 app:layout_constraintRight_toRightOf="parent"
                 app:layout_constraintBottom_toBottomOf="parent"
-                android:visibility="gone"/>
+                app:layout_constraintHeight_default="spread" >
+                <android.support.v7.widget.RecyclerView
+                    android:id="@+id/network_list"
+                    android:layout_width="match_parent"
+                    android:layout_height="match_parent"
+                    android:background="?attr/background_default"
+                    android:visibility="gone"/>
+            </org.videolan.vlc.gui.view.SwipeRefreshLayout>
             <TextView
                 android:layout_width="0dp"
                 android:layout_height="0dp"
@@ -44,5 +45,4 @@
                 android:text="@string/loading" />
 
         </android.support.constraint.ConstraintLayout>
-    </org.videolan.vlc.gui.view.SwipeRefreshLayout>
 </layout>



More information about the Android mailing list