1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 21:06:50 +01:00

Splash screen

(cherry picked from commit 076f818)
This commit is contained in:
José Rebelo 2018-07-28 16:48:33 +02:00 committed by Daniele Gobbetti
parent 16fb1a584d
commit a356c1f7bd
3 changed files with 21 additions and 2 deletions

View File

@ -45,7 +45,7 @@
<activity
android:name=".activities.ControlCenterv2"
android:label="@string/title_activity_controlcenter"
android:theme="@style/GadgetbridgeTheme.NoActionBar">
android:theme="@style/SplashTheme">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
<action android:name="android.intent.action.MAIN" />

View File

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

View File

@ -1,4 +1,4 @@
<resources>
<resources xmlns:tools="http://schemas.android.com/tools">
<style name="GadgetbridgeTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="textColorPrimary">@color/primarytext_light</item>
@ -54,4 +54,10 @@
<style name="GadgetbridgeTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="GadgetbridgeTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
<style name="SplashTheme" parent="GadgetbridgeTheme.NoActionBar">
<item tools:targetApi="21" name="android:statusBarColor">@color/primarydark_dark</item>
<item tools:targetApi="21" name="android:navigationBarColor">@color/primarydark_dark</item>
<item name="android:windowBackground">@drawable/splash</item>
</style>
</resources>