[Android] Show audio empty view over fragment content

Geoffrey Métais git at videolan.org
Wed Sep 27 12:13:17 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Sep 27 10:21:57 2017 +0200| [c3decdb8e8cfc9655c17c5e85943b4f171f4af10] | committer: Geoffrey Métais

Show audio empty view over fragment content

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

 vlc-android/res/layout/audio_browser.xml | 31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)

diff --git a/vlc-android/res/layout/audio_browser.xml b/vlc-android/res/layout/audio_browser.xml
index 590dd8a1e..f36351a75 100644
--- a/vlc-android/res/layout/audio_browser.xml
+++ b/vlc-android/res/layout/audio_browser.xml
@@ -16,21 +16,6 @@
         android:layout_marginRight="@dimen/default_margin"
         android:layout_marginEnd="@dimen/default_margin" />
 
-    <TextView
-        android:id="@+id/no_media"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_below="@+id/header"
-        android:layout_centerInParent="true"
-        android:layout_margin="@dimen/default_margin"
-        android:drawableBottom="@drawable/ic_no_media"
-        android:drawablePadding="@dimen/default_margin"
-        android:gravity="center"
-        android:maxWidth="600dp"
-        android:text="@string/nomedia"
-        android:textSize="20sp"
-        android:visibility="gone" />
-
     <org.videolan.vlc.gui.view.SwipeRefreshLayout
         android:id="@+id/swipeLayout"
         android:layout_width="@dimen/default_content_width"
@@ -49,6 +34,22 @@
             <include layout="@layout/audio_recyclerview" />
         </android.support.v4.view.ViewPager>
     </org.videolan.vlc.gui.view.SwipeRefreshLayout>
+
+    <TextView
+        android:id="@+id/no_media"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_below="@+id/header"
+        android:layout_centerInParent="true"
+        android:layout_margin="@dimen/default_margin"
+        android:drawableBottom="@drawable/ic_no_media"
+        android:drawablePadding="@dimen/default_margin"
+        android:gravity="center"
+        android:maxWidth="600dp"
+        android:text="@string/nomedia"
+        android:textSize="20sp"
+        android:visibility="gone" />
+
     <org.videolan.vlc.gui.view.FastScroller
         android:id="@+id/songs_fast_scroller"
         android:layout_width="wrap_content"



More information about the Android mailing list