Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android standard for image assets

I am an iOS developer and new to Android development. I need to send the image asset requirements to designer. But I am not sure the standards for the size of images using in the android app. In iOS, the assets has to be of size 1x, 2x & 3x sizes. Similarly, what would be for Android? I have seen some folders like "ldpi, mdpi, hdpi, xhdpi, xxhdpi, & xxxhdpi" in the drawer folder of project. What each folder stands for. I need to tell the size of images for background, app icons, button icons, etc.

like image 206
sree_iphonedev Avatar asked Dec 22 '16 04:12

sree_iphonedev


People also ask

What is image asset in Android Studio?

Android Studio includes a tool called Image Asset Studio that helps you generate your own app icons from material icons, custom images, and text strings. It generates a set of icons at the appropriate resolution for each pixel density that your app supports.

What is the best image size for Android?

The best image resolution for most smartphones is 640 by 320 pixels, although you should ideally maintain the aspect ratio of the original image or the output image will be distorted.

What is Hdpi and Mdpi in Android?

mdpi. Resources for medium-density (mdpi) screens (~160dpi). (This is the baseline density.) hdpi. Resources for high-density (hdpi) screens (~240dpi).

Does Android Studio support SVG?

Android Studio includes a tool called Vector Asset Studio that helps you add material icons and import Scalable Vector Graphic (SVG) and Adobe Photoshop Document (PSD) files into your project as vector drawable resources.


1 Answers

In iOS we can create Assets for Image like 1x,2x,and 3x. and if we looking for size of the 1x, 2x, and 3x. it is like this format 40 x 40, 80 x 80 and 120 x 120.

so In iOS

1x : 40 x 40

2x : 80 x 80

3x : 120 x 120

and in Android

ldpi : 36 x 36

mdpi : 48 x 48

hdpi : 72 x 72

xhdpi : 96 x 96

xxhdpi : 144 x 144

Hope this will help you.

like image 163
Harshad Pansuriya Avatar answered Sep 27 '22 20:09

Harshad Pansuriya