简体   繁体   中英

What should be the image resolution for Nexus One or Droid?

As Android supports multiple devices from different manufacturers there are different screen resolutions supported.

The table that is available at https://developer.android.com/guide/practices/screens_support is not very clear to me.

It shows WVGA and FWVGA in MDPI for Large Screens and HDPI for Normal screens. So, if the image is kept in drawable-mdpi and its resolution is 320 * 480 then which image will be taken by Large Screens device of MDPI.

Moreover, there are two screen resolutions for HDPI ie 480 * 800 and 480 * 854. So, with what screen resolution the image should be built.

I want to place the background image which looks distorted in WVGA emulator since its resolution is 320 * 480.

I have read about nine patchable images but I think they are better for button images and edittext images so that they can stretch according to the data in it.

Can someone please guide me in this?

It all depends on what you are trying to do. It appears you are most concerned with getting a picture in one mode to look good in another mode. Maybe read this section near the top of the page you referenced:

At run time, the platform provides three types of support to your application, to ensure the best possible display on the current device screen:

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