dotnet / dotnet/maui

Improve Android 12+ splash images

Open
#10,604 9 comments 1 reaction 0 assignees View on GitHub
area-single-project platform/android proposal/open
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

The current behavior is that the splash screen is clipped on Android 12+. Previously, Android would just display the image as-is and you would have to do all the work yourself.

In Android 12, things got smarter and now the image is clipped inside a circle and you could potentially have a different foreground/background layer like the adaptive icons.

> https://developer.android.com/develop/ui/views/launch/splash-screen

### Public API Changes

None.

### Intended Use-Case

We could leverage the same properties of `` and do splash screens better. We can use the same logic to make adaptive icons, but just in the drawable folder and not generate the xml. Then the splash screen uses that drawable pair to make a nicer icon.

Contributor guide

Open the contributing guide

Research direction

Start with the linked Android 12 splash-screen documentation and inspect the existing MauiIcon logic referenced in the issue. Trace how splash resources are generated in the drawable folder, then verify that Android 12+ can use separate foreground and background layers without clipping the image.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp
Domain
build-system, mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.