Search code examples
androidimagebuttoniconsscale

Recommended set of image sizes and densities to supply for android icon & button?


I want to create some icon and button images to be used in android. The images can be uniformly scaled/stretched over the allocated layout space(no intricate definition of minimum size in regions etc). I would like to cover all the screen sizes and density range.

(from link to Dev guide) The range for the sizes of screens is small, normal large and extra large. For the denstieis it is ldpi, mdpi, hdpi, and xhdpi. So there are 4 sizes and 4 densities. Do I need to supply 4x4 different images? If I needed to, I could imagine configuring Adobe Illustrator to export this way, but is it necessary?

What are the practical spacing between these options which reasonably cover the needs for sizes and densities in this case? A rule of thumb answer from experience would be appreciated if a more technical justification does not apply.

(note: the corners are simple right angles) (in the Dev guide, link for qualifiers, qualifiers are mentioned for Size as well as Density but in the examples for the resource folders no differentiation is made for the sizes which may be different which I find confusing. Or am I missing some fundamental understanding on how the sizes are being taken care of?) EDIT: From this link, connected to @Budgie comment below for the icons there is a recommended size and density for icons.


Solution

  • This may be useful for you: icon_templates pack

    This is a pack of icon templates for different screen sizes and densities.