splash_badge.xml
24 lines · 1.2 KB
Changed in: 0.5.0
| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Android 12+ splash icon ("Starting Earhorn Music" screen, incl. the |
| 4 | ChromeOS ARC app-start surface). |
| 5 | |
| 6 | windowSplashScreenAnimatedIcon officially accepts an adaptive-icon |
| 7 | drawable, and that is the only shape the splash system sizes |
| 8 | predictably: it applies exact adaptive geometry (108dp layer → 66dp |
| 9 | safe zone filling the icon circle). |
| 10 | |
| 11 | The previous version inset the raw 512px badge by 32dp per side and |
| 12 | handed it over as a plain drawable — the splash system then applied |
| 13 | its OWN inner-2/3 adaptive treatment on top, so the two shrinks |
| 14 | compounded and the badge rendered tiny inside the icon-background |
| 15 | circle. This adaptive form has exactly one, spec-defined scaling. |
| 16 | |
| 17 | Background = the same app surface color the theme uses for |
| 18 | windowSplashScreenBackground / IconBackgroundColor, so the badge |
| 19 | reads as floating on the app surface, maximal size, no visible ring. |
| 20 | --> |
| 21 | <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> |
| 22 | <background android:drawable="@color/surface_base" /> |
| 23 | <foreground android:drawable="@drawable/ic_launcher_foreground" /> |
| 24 | </adaptive-icon> |


