[Android] Explicitly set a black background behind the video surface

Ludovic Fauvet git at videolan.org
Mon Apr 16 00:09:40 CEST 2012


android | branch: master | Ludovic Fauvet <etix at l0cal.com> | Mon Apr 16 00:01:27 2012 +0200| [86be389669ee441e915b7e104d4aa57d30251bf1] | committer: Ludovic Fauvet

Explicitly set a black background behind the video surface

This overrides the color set by the theme (like the ugly gradient in
ICS).

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=86be389669ee441e915b7e104d4aa57d30251bf1
---

 vlc-android/res/layout/player.xml |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/vlc-android/res/layout/player.xml b/vlc-android/res/layout/player.xml
index 7721a8b..83f13b1 100644
--- a/vlc-android/res/layout/player.xml
+++ b/vlc-android/res/layout/player.xml
@@ -1,7 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="fill_parent"
-    android:layout_height="fill_parent" >
+    android:layout_height="fill_parent"
+    android:background="#000" >
 
     <SurfaceView
         android:id="@+id/player_surface"
@@ -162,4 +163,4 @@
             android:background="@drawable/ic_lock" />
     </RelativeLayout>
 
-</FrameLayout>
\ No newline at end of file
+</FrameLayout>



More information about the Android mailing list