Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 08/01/24 in all areas

  1. alejandro.sawers

    Android 15 and edge-to-edge enforcement

    Not right now, but I know sometimes Embarcadero can miss things like these and put us in a hurry eventually. I tried this with the same FMX app (I had to put a Client aligned TLayout for Padding to work and then the TButton inside it) and voila: Thanks Dave. This should work until an official fix is given.
  2. Dave Nottage

    Android 15 and edge-to-edge enforcement

    You could just leave AndroidManifest.template.xml as it is (for now) - is there some reason you need to target API level 35? If you really need to, you could use code from Kastri to implement a workaround, thus: uses DW.UIHelper, DW.Android.Helpers; { TForm1 } procedure TForm1.FormResize(Sender: TObject); begin // This method is used because the device might have Android 15, but the targetSdkVersion might be lower. Use conditionals if targeting other platforms if TAndroidHelperEx.CheckBuildAndTarget(35) then begin Padding.Top := TUIHelper.GetStatusBarOffset; // "Cheat" method for determining whether Portrait or Landscape if Screen.Width < Screen.Height then Padding.Bottom := TUIHelper.GetNavigationBarOffset else Padding.Bottom := 0; end; end; If you don't want to drag the dependent units from Kastri into your app, you could extract the parts of the code that you need.
  3. Stano

    Show executable size after successful build?

    Peter: this is not an anecdote. That was a real scientific experiment.
×