Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AndroidAppmethodCode SnippetDelphiDemoFiremonkey

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:
<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>

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.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts

AutoBlogAI: FireMonkey Client To Leverage LLMs And Generative AI For Blogging


Unleashing Creativity With Song Writer AI: A Deep Dive


How To Build Stable Diffusion Text To Image Prompts


FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes

Sign up for our Newsletter and
stay informed


Leave a Reply