Files
Password-Manager/android-client/android-res/drawable/splash_image_def.xml
T
r-zakarya 25dc524585 feat(android): the launch screen shows the padlock, not Delphi's flame
The launcher icon and the launch screen are different resources. On Android 12+ the theme points windowSplashScreenAnimatedIcon at splash_vector, which was Delphi's logo, over a #FFF background - a white flash before a dark app, every single launch.

Same padlock, drawn at 288 units with its content inside the central 192 the system guarantees. splash_background goes slate, in the light variant too since the app has only one theme. For Android 11 and earlier, which have no SplashScreen API and merely paint windowBackground, splash_image_def composes the background and the logo itself.

One source for the vector, copied onto the density and night variants by repack: four identical files in the repo would eventually diverge.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-15 16:21:26 +01:00

15 lines
648 B
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Ecran de demarrage pour Android 11 et anterieurs, qui n'ont pas l'API
SplashScreen : le systeme se contente d'afficher windowBackground, donc
c'est ici qu'il faut composer fond + logo.
Remplace la version generee, qui centrait une image bitmap de Delphi. -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
android:opacity="opaque">
<item android:drawable="@color/splash_background" />
<item
android:gravity="center"
android:width="120dp"
android:height="120dp"
android:drawable="@drawable/splash_vector" />
</layer-list>