iOS Question Resize slow

fishwolf

Well-Known Member
Licensed User
I have 5 buttons with image that i use as graphic menu.

i use a routine similar to
http://www.b4x.com/android/forum/threads/resize-all-views-to-any-screen-size.46600/

i have draw for ipad, when start the page on iphone, i see for a moment the button with big dimension
and after a moment a see the button with iphone dimension.

the time for resize is big on iphone in debug and release mode
the time for resize is medium on ipad2 in debug mode
the time for resize is small on ipad2 in release mode

i use the same routine in other pages with label, edit and text button without visible problem

i call the rountine in resize event.

Why?
is it normal that the page draw before the resize event?
how to fix?
 

fishwolf

Well-Known Member
Licensed User
ok, but i don't understand how to work autoscale.

i have create a simple design with 2 Layout (320x480 and 240x320)

when i run on 240x320 device (emulator) the design is broken.
 

Attachments

fishwolf

Well-Known Member
Licensed User
i have done a test with B4A, you say that the designer feature are the same, now i have a only ios device.

even when I developed for B4A I did not understand with use autoscale
 

fishwolf

Well-Known Member
Licensed User
Sorry, i have read this chapters and done some test, i have tried to use Autoscale feature without big benefit.

i have understand that:
1) You can create a Layout for each devices/resolution that you want manage and draw each interface. It's impossible on android, it's heavy on IOS.
2) You can create a design script that with percentage value draw a generic interface.
3) You can create a code script similar to step2

I don't find a method for create a design for a single device and have a automatic scale for each devices.

Is it right?
 

klaus

Expert
Licensed User
I don't find a method for create a design for a single device and have a automatic scale for each devices.
Unfortunately, it is not that simple. You cannot have one layout and automatically get a scaling for all screen sizes.
You can, with one layout (one for each orientaion), AutoScale and DesignerScripts adjust the layout for the different screens.
Depending on the kind of application, having a same layout for a 3.5'' and a 10'' screen may not be a good solution.
You could have a look at the AutoScale Code Module.
 
Top