Android Question Screen size

SoyEli

Active Member
Licensed User
Longtime User
I'm having a little trouble with auto-scale, I made an app to fit a Samsung s7, but when I tried it on a S8+ it tries to adjust but I still have a blank space at the bottom.
I tried different autoscale rates with no good results, I found something about anchoring, I think that's if i turn the phone sideways. I tried the "Scale.bas" but it gives an error, somthing about scrollview or something like that.

Could someone point me in the right direction? please.

Thank you for your help.
 
I tried different autoscale rates with no good results
Which layout variant do you use? You should use the standard screen size 320 x 480 scale 1.

I tried the "Scale.bas" but it gives an erro
Concerning the Scale Module.
I suppose that you haven't seen this line:
The Scale module scales also ScrollView2D views, if you don't use such a view you must comment the corresponding lines or remove them.

I found something about anchoring,
The Scale Module was written before Anchors were introduced.
You might have a look at the B4X Visual Designer Booklet, which explains the anchors with code examples.

Can you post your project, or a small project with the layout files, as a zip file so I can have a look at it.
 
Upvote 0
I'm using 320 x 480 scale 1 in layout variant and the scaleall in script - general.
I tried creating different variants with different width and height and scales, with no good results.

But let me do some research on those recomended links, I will report back.
 
Upvote 0
Without seeing your layout(s) it's difficult to give any concrete advice.
There is no universal solution.
If you have a 5'' screen on one device and a 10'' screen on an other one, you need think of what you want to display on each screen at the same time.
Having a layout for a small screen and streching it up to a big screen will look awfully on the big screen.
 
Upvote 0
I used "GetDeviceLayoutValues" to get device info, and got;
Width = 360
Height = 692
Scale = 3

So I think your right Klaus, It would stretch it vertically and wouldn't look right.

I guess I'm just going to try to ignore the bottom blank space.

Thank you for your help.
 
Upvote 0
Back
Top