Change background color in splash screen

This commit is contained in:
PavelRatushny 2017-07-05 17:45:59 +03:00
parent 6038bd5fe1
commit 821a57d410
11 changed files with 109 additions and 14 deletions

View file

@ -6,7 +6,10 @@
android:icon="@mipmap/icon_free"
android:label="@string/app_name_free"
tools:replace="android:icon, android:label">
<activity
android:name="net.osmand.plus.activities.MapActivity"
android:theme="SplashScreenFree"
tools:replace="android:theme"/>
<service
android:name="net.osmand.plus.NavigationService"
tools:replace="android:process"

View file

@ -5,6 +5,10 @@
<application
android:icon="@mipmap/icon_nightly"
tools:replace="android:icon">
<activity
android:name="net.osmand.plus.activities.MapActivity"
android:theme="SplashScreenFreeDev"
tools:replace="android:theme"/>
<service
android:name="net.osmand.plus.NavigationService"
android:process="net.osmand.dev"

View file

@ -73,7 +73,7 @@
android:resource="@xml/paths" />
</provider>
<activity android:name="net.osmand.plus.activities.MapActivity" android:label="@string/app_name" android:theme="@style/OsmandLightTheme.Launcher"
<activity android:name="net.osmand.plus.activities.MapActivity" android:label="@string/app_name" android:theme="@style/SplashScreenPlus"
android:screenOrientation="unspecified" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.VIEW" />

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
android:opacity="opaque">
<item android:drawable="@color/map_background_color_light"/>
<item android:top="24dp">
<bitmap
android:gravity="center_horizontal|top"
android:src="@drawable/ic_logo_splash_osmand"/>
</item>
<item android:bottom="48dp">
<bitmap
android:gravity="center_horizontal|bottom"
android:src="@drawable/image_text_osmand"/>
</item>
</layer-list>

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
android:opacity="opaque">
<item android:drawable="@color/map_background_color_light"/>
<item android:top="24dp">
<bitmap
android:gravity="center_horizontal|top"
android:src="@drawable/ic_logo_splash_osmand"/>
</item>
<item android:bottom="48dp">
<bitmap
android:gravity="center_horizontal|bottom"
android:src="@drawable/image_text_osmand"/>
</item>
</layer-list>

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
android:opacity="opaque">
<item android:drawable="@color/map_background_color_light"/>
<item android:top="24dp">
<bitmap
android:gravity="center_horizontal|top"
android:src="@drawable/ic_logo_splash_osmand_plus"/>
</item>
<item android:bottom="48dp">
<bitmap
android:gravity="center_horizontal|bottom"
android:src="@drawable/image_text_osmand_plus"/>
</item>
</layer-list>

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
android:opacity="opaque">
<item android:drawable="@color/map_background_color_light"/>
<item android:top="150dp">
<bitmap
android:gravity="center_horizontal|top"
android:src="@drawable/ic_logo_splash_osmand"/>
</item>
<item android:bottom="128dp">
<bitmap
android:gravity="center_horizontal|bottom"
android:src="@drawable/image_text_osmand"/>
</item>
</layer-list>

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
android:opacity="opaque">
<item android:drawable="@color/map_background_color_light"/>
<item android:top="150dp">
<bitmap
android:gravity="center_horizontal|top"
android:src="@drawable/ic_logo_splash_osmand"/>
</item>
<item android:bottom="128dp">
<bitmap
android:gravity="center_horizontal|bottom"
android:src="@drawable/image_text_osmand"/>
</item>
</layer-list>

View file

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

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
android:opacity="opaque">
<item android:drawable="@color/map_background_color_light"/>
<item android:top="150dp">
<bitmap
android:gravity="center_horizontal|top"
android:src="@drawable/ic_logo_splash_osmand_plus"/>
</item>
<item android:bottom="128dp">
<bitmap
android:gravity="center_horizontal|bottom"
android:src="@drawable/image_text_osmand_plus"/>
</item>
</layer-list>

View file

@ -74,8 +74,16 @@
<item name="android:background">?attr/selectableItemBackground</item>
</style>
<style name="OsmandLightTheme.Launcher">
<item name="android:windowBackground">@drawable/splash_screen_light</item>
<style name="SplashScreenPlus" parent="OsmandLightTheme">
<item name="android:windowBackground">@drawable/splash_screen_plus</item>
</style>
<style name="SplashScreenFree" parent="OsmandLightTheme">
<item name="android:windowBackground">@drawable/splash_screen_free</item>
</style>
<style name="SplashScreenFreeDev" parent="OsmandLightTheme">
<item name="android:windowBackground">@drawable/splash_screen_free_dev</item>
</style>
<!-- Osmand themes styles -->