简体   繁体   中英

How can I create different screen size image in android

I am new to android I would like to ask some help if there is an application that will create automatically different screen size image for my app. ?

Thank you in advance.

Android Asset Studio( https://romannurik.github.io/AndroidAssetStudio )是您可以使用的出色工具。

You should read the screens_support documentation , there you'll find the answer to your question.

For example this is the differents types of Images that you can add on your project.

A set of six generalized densities:

  • ldpi (low) ~120dpi
  • mdpi (medium) ~160dpi
  • hdpi (high) ~240dpi
  • xhdpi (extra-high) ~320dpi
  • xxxhdpi (extra-extra-extra-high) ~640dpi

Also it's important to know :

xlarge screens are at least 960dp x 720dp

large screens are at least 640dp x 480dp

normal screens are at least 470dp x 320dp

small screens are at least 426dp x 320dp

Also you can use a "tool" to put your images with those size it's called : AndroidAssetStudio

Also take a look at this post and this one it might help you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM