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

how to set background color Gradation for android 12 splash screen #1512

Closed
192kobayashi opened this issue Oct 25, 2022 · 2 comments
Closed

Comments

@192kobayashi
Copy link

Thank you for migrating #1441.

My Android app uses a gradient for the background color of the splash screen.

In this migration, I think that the background color of the splash screen is specified with AndroidWindowSplashScreenBackground.

Does this value only allow color codes?

Is there a way to specify the gradient in xml?

I would appreciate it if you could comment.

Thank you.

@erisu
Copy link
Member

erisu commented Oct 25, 2022

Per Android documentation, only color codes is allowed.

The background color for the splash screen, if not specify then system will calculate from windowBackground.

May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

https://developer.android.com/reference/android/R.attr#windowSplashScreenBackground

I am not aware if gradient background can be done.

@192kobayashi
Copy link
Author

@erisu

thank you for your answer.

got it.

Thanks again for your migration.

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

No branches or pull requests

2 participants