1

I'm very confused about various icon sizes required in android. Do I really need to have smaller icons for xxhdpi,xhdpi,hdpi,mdi if I've provided an icon for xxxhdpi and I want to show same icon for every resolution?

Since we are playing in dp why can't android just downsize them?

PS: I tried having only xxxhdpi icons and they looked perfectly fine on smaller screens for my use case.

Heisenberg
  • 5,514
  • 2
  • 32
  • 43

1 Answers1

0

You should read this link. Just to summarize:

Using a size qualifier does not imply that the resources are only for screens of that size. If you do not provide alternative resources with qualifiers that better match the current device configuration, the system may use whichever resources are the best match.

Caution: If all your resources use a size qualifier that is larger than the current screen, the system will not use them and your application will crash at runtime (for example, if all layout resources are tagged with the xlarge qualifier, but the device is a normal-size screen).

codemonger
  • 47
  • 8
  • I've read that link already and I know that size qualifiers for dimensions and layouts(like sw) are required to support different screen sizes. But according to OP why would I need smaller icon sizes for different screen sizes? Android downsizes them perfectly and all my apps are running fine with just single icon instances. – Heisenberg Jul 27 '16 at 02:11