feature: Android splash screen

This commit is contained in:
2020-05-14 11:07:43 +08:00
parent d32c5eb69a
commit a4caf325b0
8 changed files with 563 additions and 481 deletions

View File

@ -6,4 +6,5 @@
<color name="colorAccent">#FF4081</color>
<color name="normal">@android:color/transparent</color>
<color name="selected">#007AFF</color>
<color name="splash_background">?android:attr/colorBackground</color>
</resources>

View File

@ -11,7 +11,7 @@
<!-- Set theme colors from https://aka.ms/material-colors -->
<!-- colorPrimary is used for the default action bar background -->
<item name="colorPrimary">#2196F3</item>
<!-- colorPrimaryDark is used for the status bar -->
<!-- colorPrimaryDark is used for the status bar -->
<item name="colorPrimaryDark">#1976D2</item>
<!-- colorAccent is used as the default value for colorControlActivated
which is used to tint widgets -->
@ -24,4 +24,15 @@
<style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog">
<item name="colorAccent">#FF4081</item>
</style>
<style name="MainTheme.Splash" parent="Theme.AppCompat.DayNight.NoActionBar">
<item name="android:windowBackground">@drawable/splash_screen</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowActionBar">true</item>
</style>
<dimen name="design_bottom_navigation_active_text_size">11sp</dimen>
<dimen name="design_bottom_navigation_text_size">11sp</dimen>
<dimen name="design_bottom_navigation_margin">12dp</dimen>
<dimen name="design_bottom_navigation_icon_size">20dp</dimen>
</resources>