Added a app loading splash Screen (#2185)

* Added a app loading splash Screen. Just a theme that plays on start up before loading the actual app theme

* Added a app loading splash Screen. Just a theme that plays on start up before loading the actual app theme

* Update splash_background.xml
This commit is contained in:
markelgaston 2020-01-09 04:32:27 +01:00 committed by arkon
parent 4bc5f1401f
commit 141b7ac554
4 changed files with 22 additions and 1 deletions

View File

@ -26,7 +26,8 @@
android:theme="@style/Theme.Tachiyomi"> android:theme="@style/Theme.Tachiyomi">
<activity <activity
android:name=".ui.main.MainActivity" android:name=".ui.main.MainActivity"
android:launchMode="singleTask"> android:launchMode="singleTask"
android:theme="@style/SplashScreenBackground">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/colorSplash"/>
<item
android:gravity="center"
android:drawable="@mipmap/ic_launcher_round">
</item>
</layer-list>

View File

@ -84,4 +84,6 @@
<color name="md_teal_500">#009688</color> <color name="md_teal_500">#009688</color>
<color name="colorSplash">#455A64</color>
</resources> </resources>

View File

@ -1,6 +1,16 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<!--=============-->
<!--Splash Screen-->
<!--=============-->
<style name="SplashScreenBackground" parent="Theme.Tachiyomi">
<item name="android:windowBackground">@drawable/splash_background</item>
</style>
<!--========--> <!--========-->
<!--Toolbars--> <!--Toolbars-->
<!--========--> <!--========-->