OSDN Git Service

Add back the background when we show the action bar
authorOwen Lin <owenlin@google.com>
Wed, 23 May 2012 22:47:36 +0000 (15:47 -0700)
committerOwen Lin <owenlin@google.com>
Fri, 25 May 2012 23:02:23 +0000 (16:02 -0700)
This change fix the following UI issues:

1. We add a black backgorund when ActionBar shows and remove it
   when we hide the action bar.
2. Make the postion of video stable when opening
3. Prevent glitching when opening a video
4. Make it really full-screen.
5. Hide ControlOverlay at begining.

bug:6519765
bug:6491674

Change-Id: I3ab033642df2c4a158b99385b02e3e967eebeabd

res/layout/movie_view.xml

index 4e645cf..75b8dfd 100644 (file)
 -->
 
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    android:id="@+id/movie_view_root"
-    android:layout_width="match_parent"
-    android:layout_height="match_parent">
-
+        android:id="@+id/movie_view_root"
+        android:background="@android:color/black"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent">
     <VideoView android:id="@+id/surface_view"
+            android:visibility="invisible"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:layout_centerInParent="true" />
-
 </RelativeLayout>