3.8 & 10 inch LAYOUT

luke2012

Well-Known Member
Licensed User
Longtime User
Hi to all,
I'm using the same code in order to display some spinners on a 3.8 inch device and a 10 inch device.

I'm using the belove code :
spinnerName.SetLayout(35%x,30%y,30%x,10%y)

On the the 3.8 inch device it's ok.
On the 10 inch device the spinner is show without maintain proportion (see the attachment).

Wich is the correct way to avoid this problem ?

Thanks
 

Attachments

  • LAYOUT.jpg
    LAYOUT.jpg
    28.9 KB · Views: 303

luke2012

Well-Known Member
Licensed User
Longtime User
AutoScaleAll

If I understood well, the AutoscaleAll is available on 2.x B4A.

I'm using 1.9 and I think isn't available right ?
 
Upvote 0

luke2012

Well-Known Member
Licensed User
Longtime User
Before of all, thanks for you support!

I'll check for the autoscale module.
Otherwise I can use mixed mode ? I mean percentage for the object position and dip for the width and height ?

Example :

spinner.SetLayout(35%x,30%y,80dip,48dip)
 
Upvote 0
Top