Johnmcenroy Active Member Licensed User Longtime User May 20, 2013 #1 I have several question about layout: 1.If I have layout with 320x240 and 480x800 , but device has 1920x1080 which layout will be loaded ? 2.For example device's screen is 320x480 and i have a layout also 320x480 but app is not in fullscreen and the status bar on android on 320x480 is 25 px so layout must be 320x455 or this is count in designer ? Thanks I found myself that 2. Status bar is counted in visual designer. Last edited: May 20, 2013
I have several question about layout: 1.If I have layout with 320x240 and 480x800 , but device has 1920x1080 which layout will be loaded ? 2.For example device's screen is 320x480 and i have a layout also 320x480 but app is not in fullscreen and the status bar on android on 320x480 is 25 px so layout must be 320x455 or this is count in designer ? Thanks I found myself that 2. Status bar is counted in visual designer.
yttrium Active Member Licensed User Longtime User May 20, 2013 #2 Whatever layout is the default will be loaded. Instead of designing on a per-resolution basis, you should try using Designer Scripts to dynamically scale y our content for each resolution and aspect ratio. http://www.b4x.com/forum/basic4andr...utorials/16120-designer-scripts-tutorial.html Upvote 0
Whatever layout is the default will be loaded. Instead of designing on a per-resolution basis, you should try using Designer Scripts to dynamically scale y our content for each resolution and aspect ratio. http://www.b4x.com/forum/basic4andr...utorials/16120-designer-scripts-tutorial.html
Johnmcenroy Active Member Licensed User Longtime User May 20, 2013 #3 Thanks. I am using also design scripts and code. But for 240x320 i decided to create sepate variant. I mean about Layout Variants inside one Layout. For example there is Layout 1.bal with 240x320 and 320x480 Variant inside it and the device is 720x1280 - so which design script will be used from 240x320 or 320x480 ? Upvote 0
Thanks. I am using also design scripts and code. But for 240x320 i decided to create sepate variant. I mean about Layout Variants inside one Layout. For example there is Layout 1.bal with 240x320 and 320x480 Variant inside it and the device is 720x1280 - so which design script will be used from 240x320 or 320x480 ?
Erel B4X founder Staff member Licensed User Longtime User May 20, 2013 #4 It should be explained in the designer script tutorial. I also recommend you to check this guide: Supporting multiple screens - tips and best practices Upvote 0
It should be explained in the designer script tutorial. I also recommend you to check this guide: Supporting multiple screens - tips and best practices