Android Question .

Erel

B4X founder
Staff member
Licensed User
Longtime User
Start with a single variant (320x480, scale=1). In most cases it should suffice. Use the anchors and the designer script to adapt the layout to other screen sizes.

The scale rate should be between 0.2 to 0.5.

AutoScaleAll work as it is designed. In the past it didn't work correctly when the base variant is a "non-standard" variant. This issue was fixed in v3.2.

See this link: http://www.b4x.com/android/forum/threads/basic4android-v3-20-is-released.36690/#post-215889
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Note that you can replace almost all of your designer script with anchors.

The purpose of AutoScaleAll is to adjust the layout based on difference between the loaded variant and the actual screen size. The assumption here is that you designed the variant exactly as you want it.
Now when you load it on a larger or smaller device AutoScaleAll slightly increases or decreases the dimensions. If the device exactly matches the variant then it doesn't do anything.

In most cases it is recommended to start with the standard phone size variant and let AutoScale and the anchors resize the layout.
 
Upvote 0
Top