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.
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.
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.
mdpi. Resources for medium-density (mdpi) screens (~160dpi). (This is the baseline density.) hdpi. Resources for high-density (hdpi) screens (~240dpi).
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With