[Android] Transparent theme for smoother startup

Geoffrey Métais git at videolan.org
Thu Nov 3 11:34:23 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Oct 31 18:18:07 2016 +0100| [12a75955dc1e9e5c14d812e25ca3b7522c055bd1] | committer: Geoffrey Métais

Transparent theme for smoother startup

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

 vlc-android/AndroidManifest.xml   | 2 +-
 vlc-android/res/values/styles.xml | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/vlc-android/AndroidManifest.xml b/vlc-android/AndroidManifest.xml
index fd8bba2..0028e72 100644
--- a/vlc-android/AndroidManifest.xml
+++ b/vlc-android/AndroidManifest.xml
@@ -78,7 +78,7 @@
         android:banner="@drawable/banner"
         android:label="@string/app_name"
         android:logo="@drawable/icon"
-        android:theme="@style/Theme.VLC.NoTitleBar"
+        android:theme="@style/Theme.VLC.Transparent"
         android:supportsRtl="true" >
 
         <!-- Enable VLC in Samsung multiwindow mode -->
diff --git a/vlc-android/res/values/styles.xml b/vlc-android/res/values/styles.xml
index b701830..4d0a099 100644
--- a/vlc-android/res/values/styles.xml
+++ b/vlc-android/res/values/styles.xml
@@ -189,6 +189,11 @@
         <item name="android:windowBackground">@color/grey200</item>
     </style>
 
+    <style name="Theme.VLC.Transparent" parent="Theme.AppCompat.DayNight">
+        <item name="android:windowNoTitle">true</item>
+        <item name="android:windowIsTranslucent">true</item>
+    </style>
+
     <style name="Theme.VLC.Player" parent="Theme.VLC.Player.7"/>
     <style name="Theme.VLC.Player.7" parent="Theme.AppCompat">
         <item name="android:windowNoTitle">true</item>



More information about the Android mailing list