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: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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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" />
|
||||
|
|
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>
|
||||
</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 -->
|
||||
|
|
Loading…
Reference in a new issue