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

AndroidAppmethodCode SnippetDelphiFiremonkey

Quick Fix To Enable Android 4.4 Dialog Themes In Delphi XE7 Firemonkey On Android

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

Delphi XE7 Firemonkey Android 44 Dialog Theme Fix | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSDeveloper David Intersimone from Embarcadero has a blog post up with a quick fix for applying the Android 4.4 theme to dialogs in Delphi XE7 Firemonkey. Basically dialogs in Android 2.3 and Android 4.4 have a different look. The default install of Delphi XE7 Firemonkey applies the Android 2.3 look to the dialog boxes. If you want to have the Android 4.4 look for your dialog boxes you can apply this fix. Basically the fix is to get your FMX.Helpers.Android.pas file and copy it to your project directory. You then edit the two GetNativeTheme() functions to return the result of the GetThemeFromDescriptor() call inside that function. Once you make this quick fix your dialogs on Android should start having the Android 4.4 look if that is the version of Android that you are running. The blog post has code snippets that show you exactly what you should change to make it happen. This quick fix should also apply to Appmethod.

Head over and check out the full blog post plus code snippets for enabling the Android 4.4 dialog themes in Delphi XE7 Firemonkey.

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

Related posts

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


Ryzen 9 5950x: One Billion Lines Of Delphi Code Compiled In ~5 Minutes On 16 Cores

Sign up for our Newsletter and
stay informed

Leave a Reply