Fix cordova splash screen (#26)

Actually merge the splashscreen fix before deleting this time...

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>

Reviewed-on: Georgi_Lab/ALVINN_f7#26
This commit is contained in:
2023-12-01 08:48:08 -07:00
parent e2edbce407
commit d104ba82c5
2 changed files with 32 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="edu.midwestern.alvinn" version="0.1.0-a" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="edu.midwestern.alvinn" version="0.1.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>ALVINN</name>
<description>Anatomy Lab Visual Identification Neural Network.</description>
<author email="jgeorg@midwestern.edu" href="https://midwestern.edu">
@@ -15,16 +15,8 @@
<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="android-minSdkVersion" value="22" />
<preference name="SplashMaintainAspectRatio" value="true" />
<splash density="land-hdpi" src="res/screen/android/drawable-hdpi/screen.png" />
<splash density="land-mdpi" src="res/screen/android/drawable-mdpi/screen.png" />
<splash density="land-xhdpi" src="res/screen/android/drawable-xhdpi/screen.png" />
<splash density="land-xxhdpi" src="res/screen/android/drawable-xxhdpi/screen.png" />
<splash density="land-xxxhdpi" src="res/screen/android/drawable-xxxhdpi/screen.png" />
<splash density="port-hdpi" src="res/screen/android/drawable-hdpi/screen.png" />
<splash density="port-mdpi" src="res/screen/android/drawable-mdpi/screen.png" />
<splash density="port-xhdpi" src="res/screen/android/drawable-xhdpi/screen.png" />
<splash density="port-xxhdpi" src="res/screen/android/drawable-xxhdpi/screen.png" />
<splash density="port-xxxhdpi" src="res/screen/android/drawable-xxxhdpi/screen.png" />
<preference name="AndroidWindowSplashScreenAnimatedIcon" value="res/screen/android/splashscreen.xml" />
<preference name="AndroidWindowSplashScreenBackground" value="#002f65" />
<icon density="ldpi" src="res/icon/android/mipmap-ldpi/ic_launcher.png" />
<icon density="mdpi" src="res/icon/android/mipmap-mdpi/ic_launcher.png" />
<icon density="hdpi" src="res/icon/android/mipmap-hdpi/ic_launcher.png" />

View File

@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:pathData="m54,27.6 l-10.46,26.06c0,0 -12.53,5.12 -13.9,8.41 0,1.68 8.29,5.72 8.29,5.72L29.21,90L18,90L48,18l12.05,0l29.95,72l-11.05,0l-8.92,-22.22c0,0 8.35,-4.04 8.35,-5.72 -1.39,-3.35 -13.95,-8.41 -13.95,-8.41z"
android:strokeWidth="0.0578968"
android:fillColor="#ffffff"
android:strokeColor="#00000000"/>
<path
android:pathData="m48,52.92c-2.95,1.22 -16.66,7.41 -16.66,9.08 0,1.67 10.76,7.2 16.66,9.08 -3.29,-1.85 -5.33,-5.32 -5.33,-9.08C42.67,58.24 44.7,54.77 48,52.92ZM60.02,52.92c3.28,1.85 5.32,5.32 5.32,9.08 -0,3.76 -2.04,7.23 -5.33,9.08 2.95,-1.22 16.67,-7.42 16.67,-9.08 0,-1.67 -10.75,-7.19 -16.65,-9.08z"
android:strokeWidth="1.17966"
android:fillColor="#ffffff"
android:fillType="evenOdd"/>
<path
android:pathData="m54,52.58c-1.45,0 -3.11,0.33 -4.84,0.86a9.85,9.8 0,0 0,-5.01 8.54,9.85 9.8,0 0,0 5.01,8.54c1.73,0.53 3.38,0.86 4.84,0.86 1.45,0 3.11,-0.33 4.84,-0.86a9.85,9.8 0,0 0,5.01 -8.54,9.85 9.8,0 0,0 -5,-8.53 9.85,9.8 0,0 0,-0 -0c-1.73,-0.54 -3.39,-0.87 -4.85,-0.87z"
android:strokeWidth="0.26458"
android:fillColor="#ffffff"
android:fillType="evenOdd"/>
<path
android:pathData="M54,62m-4,0a4,4 0,1 1,8 0a4,4 0,1 1,-8 0"
android:strokeWidth="0.529169"
android:fillColor="#002f65"
android:strokeColor="#00000000"
android:fillType="evenOdd"/>
</vector>