Xamarin forms: How to set background color for xamarin forms android splash screen?
up vote
0
down vote
favorite
Following is the splash screen code of my xamarin forms android:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap
android:gravity="fill_horizontal|fill_vertical"
android:src="@drawable/splashbg"/>
</item>
<item>
<bitmap
android:src="@drawable/icon"
android:tileMode="disabled"
android:gravity="center"/>
</item>
</layer-list>
I wanna remove the first bitmap(named splashbg) and provide a background color for the entire page. How to give background color in xamarin android? Currently showing black color.
Go through this, but not solving my issue.
Try adding android:color="#00aff0" for layer list, but not working...
xamarin.android background-color splash-screen
add a comment |
up vote
0
down vote
favorite
Following is the splash screen code of my xamarin forms android:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap
android:gravity="fill_horizontal|fill_vertical"
android:src="@drawable/splashbg"/>
</item>
<item>
<bitmap
android:src="@drawable/icon"
android:tileMode="disabled"
android:gravity="center"/>
</item>
</layer-list>
I wanna remove the first bitmap(named splashbg) and provide a background color for the entire page. How to give background color in xamarin android? Currently showing black color.
Go through this, but not solving my issue.
Try adding android:color="#00aff0" for layer list, but not working...
xamarin.android background-color splash-screen
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Following is the splash screen code of my xamarin forms android:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap
android:gravity="fill_horizontal|fill_vertical"
android:src="@drawable/splashbg"/>
</item>
<item>
<bitmap
android:src="@drawable/icon"
android:tileMode="disabled"
android:gravity="center"/>
</item>
</layer-list>
I wanna remove the first bitmap(named splashbg) and provide a background color for the entire page. How to give background color in xamarin android? Currently showing black color.
Go through this, but not solving my issue.
Try adding android:color="#00aff0" for layer list, but not working...
xamarin.android background-color splash-screen
Following is the splash screen code of my xamarin forms android:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap
android:gravity="fill_horizontal|fill_vertical"
android:src="@drawable/splashbg"/>
</item>
<item>
<bitmap
android:src="@drawable/icon"
android:tileMode="disabled"
android:gravity="center"/>
</item>
</layer-list>
I wanna remove the first bitmap(named splashbg) and provide a background color for the entire page. How to give background color in xamarin android? Currently showing black color.
Go through this, but not solving my issue.
Try adding android:color="#00aff0" for layer list, but not working...
xamarin.android background-color splash-screen
xamarin.android background-color splash-screen
edited 2 days ago
asked 2 days ago
Sreejith Sree
294111
294111
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Inside my splash activity theme i have set:
<item name="android:windowBackground">@drawable/background_splash</item>
then in drawable folder i have background_splash.axml:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:drawable="@color/colorSplash"/>
<item>
<bitmap
android:gravity="center"
android:tileMode="disabled"
android:src="@drawable/logosplash"/>
</item>
</layer-list>
and the color is in the values folder, colors.xml:
<color name="colorSplash">#2674B5</color>
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Inside my splash activity theme i have set:
<item name="android:windowBackground">@drawable/background_splash</item>
then in drawable folder i have background_splash.axml:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:drawable="@color/colorSplash"/>
<item>
<bitmap
android:gravity="center"
android:tileMode="disabled"
android:src="@drawable/logosplash"/>
</item>
</layer-list>
and the color is in the values folder, colors.xml:
<color name="colorSplash">#2674B5</color>
add a comment |
up vote
0
down vote
Inside my splash activity theme i have set:
<item name="android:windowBackground">@drawable/background_splash</item>
then in drawable folder i have background_splash.axml:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:drawable="@color/colorSplash"/>
<item>
<bitmap
android:gravity="center"
android:tileMode="disabled"
android:src="@drawable/logosplash"/>
</item>
</layer-list>
and the color is in the values folder, colors.xml:
<color name="colorSplash">#2674B5</color>
add a comment |
up vote
0
down vote
up vote
0
down vote
Inside my splash activity theme i have set:
<item name="android:windowBackground">@drawable/background_splash</item>
then in drawable folder i have background_splash.axml:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:drawable="@color/colorSplash"/>
<item>
<bitmap
android:gravity="center"
android:tileMode="disabled"
android:src="@drawable/logosplash"/>
</item>
</layer-list>
and the color is in the values folder, colors.xml:
<color name="colorSplash">#2674B5</color>
Inside my splash activity theme i have set:
<item name="android:windowBackground">@drawable/background_splash</item>
then in drawable folder i have background_splash.axml:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:drawable="@color/colorSplash"/>
<item>
<bitmap
android:gravity="center"
android:tileMode="disabled"
android:src="@drawable/logosplash"/>
</item>
</layer-list>
and the color is in the values folder, colors.xml:
<color name="colorSplash">#2674B5</color>
answered 2 days ago
Nick Kovalsky
1,032414
1,032414
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53225067%2fxamarin-forms-how-to-set-background-color-for-xamarin-forms-android-splash-scre%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password