[Android] VideoPlayer: reduce overdraw
Sébastien Toque
git at videolan.org
Wed Aug 28 19:48:26 CEST 2013
vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Wed Aug 28 19:47:43 2013 +0200| [73c7fb1277a16043ec63c51fa7a4b6c63039bcdf] | committer: Sébastien Toque
VideoPlayer: reduce overdraw
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=73c7fb1277a16043ec63c51fa7a4b6c63039bcdf
---
vlc-android/AndroidManifest.xml | 2 +-
vlc-android/res/layout/player.xml | 3 +--
vlc-android/res/values/colors.xml | 1 +
vlc-android/res/values/styles.xml | 4 ++++
4 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/vlc-android/AndroidManifest.xml b/vlc-android/AndroidManifest.xml
index 803f7b6..b2d500b 100644
--- a/vlc-android/AndroidManifest.xml
+++ b/vlc-android/AndroidManifest.xml
@@ -67,7 +67,7 @@
<activity
android:name=".gui.video.VideoPlayerActivity"
android:configChanges="orientation|screenSize"
- android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
+ android:theme="@style/Theme.VLC.Fullscreen" >
<!-- This filter captures protocols without type info -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
diff --git a/vlc-android/res/layout/player.xml b/vlc-android/res/layout/player.xml
index f76cc41..411b995 100644
--- a/vlc-android/res/layout/player.xml
+++ b/vlc-android/res/layout/player.xml
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:background="#000001" >
+ android:layout_height="fill_parent" >
<!-- the double FrameLayout is necessary here to do cropping on the right
(which requires the surface not be centered), while keeping the result centered -->
diff --git a/vlc-android/res/values/colors.xml b/vlc-android/res/values/colors.xml
index 4d2a6b2..f43b844 100644
--- a/vlc-android/res/values/colors.xml
+++ b/vlc-android/res/values/colors.xml
@@ -11,5 +11,6 @@
<color name="font_light">#777777</color>
<color name="orange">#ffbb33</color>
<color name="darkorange">#ff8800</color>
+ <color name="black">#000001</color>
</resources>
\ No newline at end of file
diff --git a/vlc-android/res/values/styles.xml b/vlc-android/res/values/styles.xml
index 3c109ff..21e6c5a 100644
--- a/vlc-android/res/values/styles.xml
+++ b/vlc-android/res/values/styles.xml
@@ -58,6 +58,10 @@
<item name="android:windowBackground">@color/background_common</item>
</style>
+ <style name="Theme.VLC.Fullscreen" parent="android:Theme.NoTitleBar.Fullscreen">
+ <item name="android:windowBackground">@color/black</item>
+ </style>
+
<style name="ActionBar" parent="Widget.Sherlock.Light.ActionBar">
<item name="android:background">@drawable/actionbar_background</item>
<item name="background">@drawable/actionbar_background</item>
More information about the Android
mailing list