Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I try to customize Splash screen in Android, .net 9 but it doesn't work #1081

Open
Cr15Denis opened this issue Jan 28, 2025 · 1 comment
Open

Comments

@Cr15Denis
Copy link

Cr15Denis commented Jan 28, 2025

Android framework version

net9.0-android

Affected platform version

.net 9

Description

I try to customize Splash screen in Android, .net 9 but it doesn't work, it works fine in .net 8. Xamarin.AndroidX.Core.SplashScreen

<style name="MainTheme" parent="Theme.Material3.DayNight.NoActionBar">
	<!-- Configuración del tema principal -->
</style>

<style name="SplashTheme" parent="Theme.SplashScreen">
	<item name="windowSplashScreenBackground">@color/splash_background</item>
	<item name="postSplashScreenTheme">@style/MainTheme</item>
</style>

[Activity(
Theme = "@style/SplashTheme",
MainLauncher = true,
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
public class MainActivity : MauiAppCompatActivity
{
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
}
}

Steps to Reproduce

Only the default splash screen is shown

Did you find any workaround?

No response

Relevant log output

@moljac
Copy link
Contributor

moljac commented Jan 29, 2025

Thanks for the feedback, but could you provide minimal repro sample, please?

I am no Splash screen API expert and I would need repro, so I can investigate.

Is that MAUI project?

OK. I see it. It is MAUI project.

Does it work in .NET8?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants