Android Question Images in multiple devices

Luiz Fernando Orlandini

Active Member
Licensed User
Longtime User
Hi All.

In the last days I start to create the layout variants to my APP.

- 370x470, scale 1
- 480x800, scale 1.5
- 720x960, scale 2
- 1080x1920, scale 3

My APPs has a lot of different images in the layout. So when I tested the last variant, some images looks distorted.

How can I deal with that? May I have to create a new image with a higher resolution and substitute image that not looks good?

Or...

I have to put all imagens in folder: res/drawable-hdpi, res/drawable-mdpi, res/drawable-xdpi, res/drawable?

Thanks for any help.
 

KMatle

Expert
Licensed User
Longtime User
Could be a memory problem. If the view (f.e. panel or imageview) is 1920x1080 then it uses a lot of memory. Several images with thtat size lead to an automatic downsample and the images look distorted. Check the logs.

If the original imagesize is f.e. 640x480 and you stretch it to 1920x1080 it may be look distorted, too-

How manay images do you load of what size (pixels) and how?
 
Upvote 0

Luiz Fernando Orlandini

Active Member
Licensed User
Longtime User
Could be a memory problem. If the view (f.e. panel or imageview) is 1920x1080 then it uses a lot of memory. Several images with thtat size lead to an automatic downsample and the images look distorted. Check the logs.

If the original imagesize is f.e. 640x480 and you stretch it to 1920x1080 it may be look distorted, too-

How manay images do you load of what size (pixels) and how?
I understand these behaviour, but I think is not the case.

This happens in B4A Designer, when I'm projection my layout.

In this screen I have about 10 images.

1 background, and 3 buttons, with 3 images each.

I'm loading the picture, in project time, associating the file in image view, or button.
 
Upvote 0
Top