- Open the required layout definition field in the editor. The Preview tool window opens.
-
Specify the alternative resources
to configure the target environment using the tool window controls:
-
Screen size
and screen density
.
- Screen orientation
.
- Target Android platform
to adjust the application to.
- Locale
.
- Dock mode
.
- Night mode
.
- Theme
.
-
Screen size
-
Adjust the preview appearance using the toolbar buttons:
-
To have IntelliJ IDEA compress or expand the preview so it fits the specified screen size,
toggle the Zoom to Fit button
.
-
To have IntelliJ IDEA compress or expand the preview so it fits the Preview tool window size,
click the Zoom to Actual Size button
.
-
To expand or compress the preview, use the Zoom In
and Zoom Out
buttons respectively.
-
Normally, the preview changes on-the-fly as you update the definition file. If it does not, click the Refresh button
button
to have IntelliJ IDEA update the preview.
-
To have IntelliJ IDEA compress or expand the preview so it fits the specified screen size,
toggle the Zoom to Fit button
-
To have IntelliJ IDEA automatically close the Preview tool window when the focus in the editor switches to a non-layout definition file,
click the Options toolbar button
and select
Hide for non-layout files.
- To close the Preview tool window, click the Preview tool window button.
- To re-open the Preview tool window, click the Preview tool window button again.
