[Android] Fix no-media view visibilit and adjust appearance

Alexandre Perraud git at videolan.org
Fri Jun 24 11:29:19 CEST 2016


vlc-android | branch: 2.0.x | Alexandre Perraud <4leyx4ndre at gmail.com> | Fri Jun 17 15:45:41 2016 +0200| [efbfa87a4b7a9ab8b5e164e3dcda5a7cfb7706f9] | committer: Alexandre Perraud

Fix no-media view visibilit and adjust appearance

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

 vlc-android/res/layout/audio_browser.xml | 3 ++-
 vlc-android/res/layout/video_grid.xml    | 9 +++++----
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/vlc-android/res/layout/audio_browser.xml b/vlc-android/res/layout/audio_browser.xml
index cff16b1..1d9701d 100644
--- a/vlc-android/res/layout/audio_browser.xml
+++ b/vlc-android/res/layout/audio_browser.xml
@@ -9,7 +9,7 @@
 
     <TextView
         android:id="@+id/no_media"
-        android:layout_width="match_parent"
+        android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_below="@+id/header"
         android:layout_centerInParent="true"
@@ -17,6 +17,7 @@
         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" />
diff --git a/vlc-android/res/layout/video_grid.xml b/vlc-android/res/layout/video_grid.xml
index fac39cc..e02b444 100644
--- a/vlc-android/res/layout/video_grid.xml
+++ b/vlc-android/res/layout/video_grid.xml
@@ -30,20 +30,21 @@
         android:id="@id/android:empty"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
-        android:gravity="center_vertical"
+        android:gravity="center"
         android:orientation="vertical">
 
-    <TextView
+        <TextView
             android:id="@+id/textview_nomedia"
-            android:layout_width="match_parent"
+            android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             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="invisible" />
+            android:visibility="visible" />
 
         <LinearLayout
             android:id="@+id/layout_flipper_loading"



More information about the Android mailing list