Android Question AutoScaleAll

sirjo66

Well-Known Member
Licensed User
Longtime User
AutoScaleAll is very very nice for to adapt layout to different device size, but.....

...on an LG device it fails !

Also when I run B4A-Bridge I have some problem.
Take a look at image in attachment, the layout is not complete !!

LG-E400 - Android 2.3.6 - monitor resolution: 240x320

maybe that is because the resolution is very very low ???

Sergio
 

Attachments

  • 20141021_135759.jpg
    20141021_135759.jpg
    234.8 KB · Views: 202

klaus

Expert
Licensed User
Longtime User
maybe that is because the resolution is very very low ???
Probably yes.
What version of B4A are you using ?
The AutoScale function has changed in B4A version 3.2.
What AutoScaleRate are you using ?
What is the Layout Variant ?
Downscaling bigger layouts to a smaller ones will work well only with AutoScaleRate near 1.
 
Upvote 0

sirjo66

Well-Known Member
Licensed User
Longtime User
Probably yes.
What version of B4A are you using ?
The AutoScale function has changed in B4A version 3.2.
What AutoScaleRate are you using ?
What is the Layout Variant ?
Downscaling bigger layouts to a smaller ones will work well only with AutoScaleRate near 1.

B4A version 3.82
I don't use AutoScaleRate, in my "Designer Script" there is only AutoScaleAll command
Layout Variant: 320 x 480, scale = 1 (160 dpi)

Thanks

Sergio
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Try
B4X:
AutoScaleRate(1)
AutoScaleAll
Or
B4X:
If ActivitySize < 3.2 Then
    AutoScaleRate(1)
End If
AutoScaleAll
You can change 3.2 to adapt the value to your needs.
 
Upvote 0
Top