V
V
vikS2013-06-12 18:24:06
Android
vikS, 2013-06-12 18:24:06

Can anyone tell me if there is a utility that converts images to different screens of Android devices?

I am developing an android application, but I really don’t want to pore over each picture for a long time so that it is displayed equally well on all screens. I'm not the only lazy one, right? There must be a utility that performs the function of scaling bitmaps for various screens of android devices. Thanks in advance to everyone who will respond.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
E
Edward, 2013-06-13
@vikS

if I understood you correctly
w3bsit3-dns.com/2013/06/10/103908/

H
Hitory, 2013-06-12
@Hitory

Usually 9patch is used (http://developer.android.com/tools/help/draw9patch.html), which allows you to stretch images to fit the desired area.

S
StanKo, 2014-05-12
@StanKo

If we talk about, say, pictures, then there is no simple salvation.
For example, what size picture do not make and do not shove in hdpi / xhdpi, etc., but it will not look the same on screens with a resolution of 800x480 (the most common, especially for Samsung) and 640x960 (for example Meizu MX) / 1080x720 (for example HTC Rezound) , because The aspect ratio of these screens is different (1.6(6) and 1.5). No matter how you scale it, it will either stretch it in width or height (fitXY), or you will have to “zoom in” with loss of edges (cropCenter). Those. just a tool that automates resizing for dpi is not enough, you need to find a compromise with the ImageView scaling type.
In addition, it should be remembered that for a bucket of pictures, like a red rag for a bull, you can very quickly achieve OOM (Out of memory error). Therefore, I advise you to initially lower the pictures in resolution, for example, for hdpi, use pictures no larger than 640x380, "finishing off" by stretching.

A
agamov, 2014-12-01
@agamov

Most likely you need Cut&Slice

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question