Adding a Device Preset
Go Up to Device Manager
Adding a device preset allows you to see the device in the Device Manager and in the Multi-Device Preview. If you also install the appropriate package for such device you can view it in the View Selector and use it as a FireMonkey View.
- Note: Device presets can also be added from the DevicePresets.xml file.
To add a device preset to the list of device presets from the Device Manager, do the following:
- Select Tools > Options > Environment Options > Form Designer > Device Manager.
- Click Add. The New device settings window opens. You can use this window to configure your device preset.
- Enter some basic information about your new device preset:
- In Device Name, enter a unique name for your new device preset. For example, "My Smartphone".
- In Platform, select the platform that your new device preset is meant to run on. If your device supports several platforms, you must create a separated device preset for each platform it supports.
- In Form Factor, select the form factor of your new device preset.
- You can configure any combination of the four orientations a device preset may support. To configure an orientation:
- Click the tab of the target orientation:
- Portrait
- Upside down
- Landscape left
- Landscape right
- Check Enable Orientation to enable the selected orientation in your new device preset.
- In Device Background, click the ellipsis (...) button and select an image file to use as background image for your new device preset.
- In the Screen upper left corner, use the Left and Top fields to indicate the top-left corner of the screen in the device image.
- In Screen size, use the Width and Height fields to indicate the width and the height of the screen to calculate the bottom-right corner of the screen according to the top-left corner indicated above.
- In the Status bar:
- Use Size to define the height (portrait and upside down orientation) or width (landscape orientation) of the status bar. The status bar is located within the screen of the device preset, and takes space from your application unless your application is full-screen.
- Use Position to define where in the screen the status bar is anchored:
- Top
- Bottom
- Left
- Right
- Click the tab of the target orientation:
- Click OK to add your new device preset to the list of device presets.
You can edit your device preset later if you want to change any settings.