Autoscale Layout

junaidahmed

Well-Known Member
Licensed User
Longtime User
I am very happy to see the Basic4Android 2.20 has launched Autoscale feature,but i don't know how to do that,Currently I have designed a layout for Samasung Galaxy Note with resolution 1280 X 800 and 320 dpi.
I have to replace this layout to all device size with autoscale feature.pls see the attached layout file and send the sample code for autoscale for this layout.
 

Attachments

  • stylemaster_layout.bal
    6.6 KB · Views: 271

lagore

Active Member
Licensed User
Longtime User
If I understand Erel correctly you should start with the standard phone in your case landscape 480 x 320 scale = 1, place all of your components. Then create a new variant for the tablet in a scale = 1 equivalent so for your tablet that would be 640 x 400 scale = 1. In the designer script then specify AutoScaleAll and what ever other tweaks (dock button to edge etc) you may have to use AutoScaleRate in each variant to customise the scale.
 
Upvote 0
Top