Search code examples
androidiosdelphifiremonkeydelphi-xe8

How to Change Tablet App to Phone app in Delphi XE8?


i've created an app in Delphi XE8 for tablets. So if the screen is smaller than 7 inch not everything fits. I do work with layouts and Align properties so everything gets scaled accordingly to the screen size. I know a few options to make the app useable for phones ass well. But not sure what the best way is.

Option1:

Create multiple Views for each size screen.

Option2:

Use ScaledLayout to make everything smaller or bigger.

Option3:

Use scrollBox.

Option4:

Edit component sizes in FormCreate after checking screen size.

Option5:

Devide in more Forms.

So what's the best option or are there even better ways to do this?

In the Screen below you can see an example of how my form looks on a 7inch tablet: enter image description here

In the Screen below you can see an example of how the same form looks on a phone: enter image description here


Solution

  • I've chosen to use more forms to display all my data, in combination with pop up screens. Along with a scaled layout to automatically scale some fields.