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 XE7 Firemonkey Android 4.4 Dialog Theme FixDeveloper 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

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


DelphiCon 2020 FireMonkey Sessions Available Starting November 19


Powerful Commercial Gorilla3D Framework Upgraded For Delphi FireMonkey On Windows And Android

Sign up for our Newsletter and
stay informed

Leave a Reply