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.