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
DelphiFiremonkeyIDEIOSOSXWindows

DelphiCon 2020 FireMonkey Sessions Available Starting November 19

AndroidC++BuilderDelphiDemoFiremonkeyWindows

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

AndroidC++BuilderCode SnippetDelphiDemoFiremonkeyIOSOSXShowcaseWindows

Powerful Cross Platform Email App Sample In Delphi 10.4.1 FireMonkey For Android And IOS

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

Significant Update Available For Delphi FireMonkey 10.4.1 On Android, IOS, OSX, Windows, And Linux

Sign up for our Newsletter and
stay informed

Leave a Reply