Fix splash screen loading on Android
This commit is contained in:
parent
eb9cbdc369
commit
2717891141
7 changed files with 115 additions and 6 deletions
BIN
platform/android/java/app/res/drawable/splash.png
Normal file
BIN
platform/android/java/app/res/drawable/splash.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
BIN
platform/android/java/app/res/drawable/splash_bg_color.png
Normal file
BIN
platform/android/java/app/res/drawable/splash_bg_color.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
12
platform/android/java/app/res/drawable/splash_drawable.xml
Normal file
12
platform/android/java/app/res/drawable/splash_drawable.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:drawable="@drawable/splash_bg_color" />
|
||||
|
||||
<item>
|
||||
<bitmap
|
||||
android:gravity="center"
|
||||
android:src="@drawable/splash" />
|
||||
</item>
|
||||
|
||||
</layer-list>
|
||||
9
platform/android/java/app/res/values/themes.xml
Normal file
9
platform/android/java/app/res/values/themes.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="GodotAppMainTheme" parent="@android:style/Theme.Black.NoTitleBar.Fullscreen"/>
|
||||
|
||||
<style name="GodotAppSplashTheme" parent="@style/GodotAppMainTheme">
|
||||
<item name="android:windowBackground">@drawable/splash_drawable</item>
|
||||
</style>
|
||||
</resources>
|
||||
Loading…
Add table
Add a link
Reference in a new issue