[Android] Video player: do not show the controls when the video loads

Adrien Maglo git at videolan.org
Mon Mar 17 15:25:19 CET 2014


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Mon Mar 17 12:01:32 2014 +0100| [e6589481b793b25fd808bd25481e5e5f4b7f2c65] | committer: Adrien Maglo

Video player: do not show the controls when the video loads

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=e6589481b793b25fd808bd25481e5e5f4b7f2c65
---

 vlc-android/res/layout/player.xml |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/vlc-android/res/layout/player.xml b/vlc-android/res/layout/player.xml
index 2ac66f3..a4e2381 100644
--- a/vlc-android/res/layout/player.xml
+++ b/vlc-android/res/layout/player.xml
@@ -42,7 +42,8 @@
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_centerInParent="true"
-            android:background="@drawable/ic_pause_circle" />
+            android:background="@drawable/ic_pause_circle"
+            android:visibility="invisible" />
 
         <TextView
             android:id="@+id/player_overlay_info"
@@ -65,7 +66,8 @@
             android:layout_gravity="top"
             android:background="?attr/video_player_overlay"
             android:paddingLeft="5dp"
-            android:paddingRight="5dp" >
+            android:paddingRight="5dp"
+            android:visibility="invisible" >
 
             <TextView
                 android:id="@+id/player_overlay_title"
@@ -100,7 +102,8 @@
             android:layout_alignParentRight="true"
             android:layout_below="@+id/player_overlay_header"
             android:gravity="bottom|center_horizontal"
-            android:orientation="vertical" >
+            android:orientation="vertical"
+            android:visibility="invisible" >
 
             <ImageButton
                 android:id="@+id/player_overlay_subtitle"
@@ -128,7 +131,8 @@
             android:layout_alignParentBottom="true"
             android:background="?attr/video_player_overlay"
             android:paddingLeft="5dp"
-            android:paddingRight="5dp" >
+            android:paddingRight="5dp"
+            android:visibility="invisible" >
 
             <ImageButton
                 android:id="@+id/lock_overlay_button"



More information about the Android mailing list