summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorcyberta <cyberta@riseup.net>2022-12-05 14:31:21 +0100
committercyberta <cyberta@riseup.net>2022-12-05 14:31:21 +0100
commit8510b91343e234d559b39e8e5e14acc7a975506a (patch)
treefd6773d552d815bd1405e24126aeb046c00a319b /app/src
parent1b981b7971e207e892a4f457d455f0856533540f (diff)
Bitmask splash screen for Android 12+
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/res/drawable/footer_text_drawable.xml2
-rw-r--r--app/src/normal/res/drawable/splash_branding.xml3
-rw-r--r--app/src/normal/res/drawable/splash_icon.xml14
-rw-r--r--app/src/normal/res/values-v31/themes.xml8
4 files changed, 27 insertions, 0 deletions
diff --git a/app/src/main/res/drawable/footer_text_drawable.xml b/app/src/main/res/drawable/footer_text_drawable.xml
index 801746df..e3ec5005 100644
--- a/app/src/main/res/drawable/footer_text_drawable.xml
+++ b/app/src/main/res/drawable/footer_text_drawable.xml
@@ -13,6 +13,8 @@
android:gravity="center"
android:top="@dimen/footer_text_padding"
android:bottom="@dimen/footer_text_padding"
+ android:left="20dp"
+ android:right="20dp"
>
<bitmap android:src="@drawable/leap_footer_en"/>
</item>
diff --git a/app/src/normal/res/drawable/splash_branding.xml b/app/src/normal/res/drawable/splash_branding.xml
new file mode 100644
index 00000000..8c4ee21c
--- /dev/null
+++ b/app/src/normal/res/drawable/splash_branding.xml
@@ -0,0 +1,3 @@
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="@drawable/footer_text_drawable" />
+</layer-list> \ No newline at end of file
diff --git a/app/src/normal/res/drawable/splash_icon.xml b/app/src/normal/res/drawable/splash_icon.xml
new file mode 100644
index 00000000..f882d322
--- /dev/null
+++ b/app/src/normal/res/drawable/splash_icon.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="@drawable/rotate_progress_image"
+ android:height="198dp"
+ android:width="198dp"
+ android:gravity="fill"/>
+ <item
+ android:gravity="center"
+ android:height="52.75dp"
+ android:width="80dp"
+ >
+ <bitmap android:src="@drawable/logo"/>
+ </item>
+</layer-list> \ No newline at end of file
diff --git a/app/src/normal/res/values-v31/themes.xml b/app/src/normal/res/values-v31/themes.xml
new file mode 100644
index 00000000..7ea17424
--- /dev/null
+++ b/app/src/normal/res/values-v31/themes.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <style name="SplashTheme" parent="Theme.AppCompat.NoActionBar">
+ <item name="android:windowSplashScreenBackground">@color/white</item>
+ <item name="android:windowSplashScreenAnimatedIcon">@drawable/splash_icon</item>
+ <item name="android:windowSplashScreenBrandingImage">@drawable/splash_branding</item>
+ </style>
+</resources> \ No newline at end of file