Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey, Delphi Android, Delphi IOS

Add A Splash Screen With The Android Manifest For Delphi XE5 Firemonkey Apps

| Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Delphi XE5 Firemonkey Splash Screen | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSI found another way to do a splash screen with Delphi XE5 Firemonkey apps on Android over at a Korean Delphi blog by Humphrey. Kim Hyun – Soo. Basically this method is much easier than modifying the classes.dex file and much better than just implementing the splash screen on your Delphi form. The idea of the splash screen is to have something for the user to look at instead of a black screen while the rest of the app is loading. The general implementation is that you create a styles.xml file which sets up a background image as a style and then you assign that to the theme part of the Android manifest. You must include the styles.xml file and the splash screen image in your project when deploying, make the small change to the Android manifest, and that is all there is to it. The change to the Android manifest looks like this:
android: theme = "@ style / MyTheme.NoTitleBar.SplashWindow">
And the contents of the styles.xml file looks like this:
<resources>
<style name="MyTheme.NoTitleBar.SplashWindow" parent="@android:Theme.Holo">
<item name="android:windowBackground">@drawable/splash</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowFullscreen">true</item>
</style>
</resources>

The original blog post is in Korean so I’ve passed it through Google Translate. The Korean blog post also references this Chinese blog post which may be where the original idea is from.

Head over and read the full blog post about the splash screen.

You can also click through directly to a sample app with source code on Github.

Update: Also take a look at some more sample source code here and another blog post here.

Exit mobile version