Change background color in splash screen
This commit is contained in:
parent
6038bd5fe1
commit
821a57d410
11 changed files with 109 additions and 14 deletions
|
@ -6,7 +6,10 @@
|
||||||
android:icon="@mipmap/icon_free"
|
android:icon="@mipmap/icon_free"
|
||||||
android:label="@string/app_name_free"
|
android:label="@string/app_name_free"
|
||||||
tools:replace="android:icon, android:label">
|
tools:replace="android:icon, android:label">
|
||||||
|
<activity
|
||||||
|
android:name="net.osmand.plus.activities.MapActivity"
|
||||||
|
android:theme="SplashScreenFree"
|
||||||
|
tools:replace="android:theme"/>
|
||||||
<service
|
<service
|
||||||
android:name="net.osmand.plus.NavigationService"
|
android:name="net.osmand.plus.NavigationService"
|
||||||
tools:replace="android:process"
|
tools:replace="android:process"
|
||||||
|
|
|
@ -5,6 +5,10 @@
|
||||||
<application
|
<application
|
||||||
android:icon="@mipmap/icon_nightly"
|
android:icon="@mipmap/icon_nightly"
|
||||||
tools:replace="android:icon">
|
tools:replace="android:icon">
|
||||||
|
<activity
|
||||||
|
android:name="net.osmand.plus.activities.MapActivity"
|
||||||
|
android:theme="SplashScreenFreeDev"
|
||||||
|
tools:replace="android:theme"/>
|
||||||
<service
|
<service
|
||||||
android:name="net.osmand.plus.NavigationService"
|
android:name="net.osmand.plus.NavigationService"
|
||||||
android:process="net.osmand.dev"
|
android:process="net.osmand.dev"
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
android:resource="@xml/paths" />
|
android:resource="@xml/paths" />
|
||||||
</provider>
|
</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">
|
android:screenOrientation="unspecified" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.VIEW" />
|
<action android:name="android.intent.action.VIEW" />
|
||||||
|
|
15
OsmAnd/res/drawable-land/splash_screen_free.xml
Normal file
15
OsmAnd/res/drawable-land/splash_screen_free.xml
Normal 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>
|
15
OsmAnd/res/drawable-land/splash_screen_free_dev.xml
Normal file
15
OsmAnd/res/drawable-land/splash_screen_free_dev.xml
Normal 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>
|
15
OsmAnd/res/drawable-land/splash_screen_plus.xml
Normal file
15
OsmAnd/res/drawable-land/splash_screen_plus.xml
Normal 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>
|
15
OsmAnd/res/drawable/splash_screen_free.xml
Normal file
15
OsmAnd/res/drawable/splash_screen_free.xml
Normal 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>
|
15
OsmAnd/res/drawable/splash_screen_free_dev.xml
Normal file
15
OsmAnd/res/drawable/splash_screen_free_dev.xml
Normal 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>
|
|
@ -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>
|
|
15
OsmAnd/res/drawable/splash_screen_plus.xml
Normal file
15
OsmAnd/res/drawable/splash_screen_plus.xml
Normal 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>
|
|
@ -74,8 +74,16 @@
|
||||||
<item name="android:background">?attr/selectableItemBackground</item>
|
<item name="android:background">?attr/selectableItemBackground</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="OsmandLightTheme.Launcher">
|
<style name="SplashScreenPlus" parent="OsmandLightTheme">
|
||||||
<item name="android:windowBackground">@drawable/splash_screen_light</item>
|
<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>
|
</style>
|
||||||
|
|
||||||
<!-- Osmand themes styles -->
|
<!-- Osmand themes styles -->
|
||||||
|
|
Loading…
Reference in a new issue