The tool window appears when you open a layout definition file for the first time and remains on the screen until you close it manually by clicking the Preview tool window button. After that it remains hidden until you open it manually by clicking the Preview tool window button again.
In this tool window, emulate the required target device configuration and view the output of the currently opened layout definition file in it without launching a physical or virtual device. This helps you adjust your application to various Android platforms, devices with various screen sizes, orientations, doc modes, night/notnight modes, locales, etc.
In this section:
|Zoom to fit||Toggle this button to have IntelliJ IDEA compress or expand the preview so it fits the target screen size.|
|Zoom to Actual Size||Click this button to have IntelliJ IDEA|
|Zoom In||Click this button to have IntelliJ IDEA expand the preview.|
|Zoom Out||Click this button to have IntelliJ IDEA compress the preview.|
|Refresh||Click this button to have IntelliJ IDEA update the preview so it reflects the changes to the current layout definitions, if it has not been done on-the-fly.|
Click this button to configure appearance and behavior of the tool window.
From the drop-down lists in this area, choose the following alternative resources to emulate the required target device configuration:
- Target device which presents a combination of Screen size and screen density. If no device is chosen, IntelliJ IDEA displays an error message and provides a link to the dialog box where you can configure it.
- Screen orientation.
- Target Android platform to adjust the application to.
- Dock mode.
- Night mode.