How to set the virtual GUI screen size

It can be virtually fixed to a size specified by the developer, independent of the actual screen size.

If the specified horizontal size (or vertical size) is different from the actual screen size, all GUIs are automatically scaled.

This makes it relatively easy to handle mobile terminals with various screen sizes.

See setUIResolution .