Encontré una web donde explicaba como crear la vista personalizada, y para instalarla en RAD hay que crear un paquete, sigo estas instrucciones:
Código:
unit Unit1;
interface
implementation
uses
system.Devices, system.Types, system.SysUtils;
const
ViewName = 'RedmiNote10'; // The unique name of the view, it has to be the same name as the one written between <Name></Name> tags of the DevicePreset.xml file.
initialization
TDeviceinfo.AddDevice(TDeviceinfo.TDeviceClass.Phone, ViewName,
TSize.Create(2315, 1055), TSize.Create(2315 div 2 ,1055 div 2), // MinPhysicalSize(max, min), MinLogicalSize(max, min)
TSize.Create(2400, 1080), TSize.Create(2400 div 2, 1080 div 2), // MaxPhysicalSize(max,min), MaxLogicalSize(max,min)
TOSVersion.TPlatform.pfAndroid, 409); //Select the platform and the pixel density.
finalization
TDeviceinfo.RemoveDevice(ViewName); // To unregister the view after unistalling the package.
end.
Pero al ejecutar, para crear ls BPL me dice:
Cannot run project unless a host application is defined.
Use the Run/Parameters... dialog box
¿Que me falta hacer?
Gracias anticipadas
PD la modificacion del DevicePreset.xml esta efectuada