Background picture lock ratio

Hello to all
I have background image and few objects on it (hiden buttons, textboxes,..). I want that the background picture is on every phone in its original ratio (not stretch like it is now). If on the picture is circle I want that user see circle not elipse.
How to lock background ratio?

2 Likes

Show your blocks, screenshots and post a test aia.

See also here:

2 Likes

image for background has perfert circle and perfect square


on phone the background image is not in ratio it is stratched (it depend of smartphone resolution)
see photo (you can see elipse and rectangle)

I want to know how to lock the background picture ratio (I dont want that picture is stretched)

2 Likes

I have made some experiments and IMHO it is impossible.
Use canvas and image sprites instead of screen background picture to control the aspect ratio of elements.

2 Likes

Try this app on different devices:

3 Likes

I want to have buttons and textboxes.. I cannot make button on canvas

1 Like

circle is elipse and sqare is rectangle...not working. I just want to lock the ratio (prevent stretching the background picture)

1 Like

Post a screenshot. And which device & Android version?

2 Likes

Please see the pictures you sent me...see that there are no circle on Moto G and also on Pixel 2XL

1 Like

try to use this background picture...you will never see circle on any device


it will always be elipse

1 Like

Yes, my mistake. I'll post the new version in a few minutes ...

1 Like

I updated my post (#5). So check it again ...
bgImageScaled2.apk

1 Like

Galaxy Note8 (Android 9):

1 Like

please use the green background with circle. What is your solution?

1 Like

What difference should that make? :upside_down_face:

1 Like

How you make this? The only solution I made is to edit the background picture in painter to have the right resolution...But this only work for my phone if fone has diferent resolution there will be no circle..
Soo...how you make this?

1 Like

can you paste the aia project?

1 Like

So my test app seems to work on your devices too. Show us screenshots, device name & Android version.

1 Like

soo..can you tell me how to do it without modifiying the background picture in painter?
can you paste aia project file?

1 Like

And again, does my app work on your devices?
If so, let us see screenshots ...

1 Like