Y
Y
ywitodenasuby2018-08-29 14:17:00
Android
ywitodenasuby, 2018-08-29 14:17:00

What should be the default photo size for an ImageView in an Android app?

I have an ImageView and I want to display an image in it by default. What size should it be to be adaptive? Or what kind of photos do you need?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Chvarkov, 2018-08-29
@KuSu

It all depends on how to display and what size ImageView. You can tile with a seamless texture, you can display it in its original size in the center of the view, or you can stretch it to the entire view. In the case of stretching, for myself, I came to the conclusion that I need an image no smaller than the size of the view in dp * 3

O
one pavel, 2018-08-30
@onepavel

In my latest development, they completely switched to vector. There is not a single raster in the resources and they no longer care about
hdpi, xhdpi, xxxxxx ... In past projects, layout was carried out from large sizes xxhdpi or xxxhdpi.
Only the most critical images have already been resized for low resolutions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question