Take the 2-minute tour ×

I'm developing an app and yeasterday i deployed it on a galaxy S3 and galaxy S. I know thath the first one support xhdpi and the second one hdpi. So i also defined layout-large and layout-xlarge as i read here (Google Site) the result is that both used layout (medium). so i tried (for jocking) layout-hdpi and layout-xhdpi, and work!

i don't understand why. any suggestion?

moreover: i defined in my project layout-small, layout (medium), layout-hdpi,layout-xhdpi and layout-large. i need to add other layout, but which one?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Layout-large and layout-xlarge correspond to the size of the screen. MDPI/(X)HDPI corresponds to the resolution of your device. Those are two different things.

Galaxy S has a screen of "normal" size and HDPI resolution, that's why it will use "layout" folder and not layout-large or anything else. It will however use layout-hdpi.

The most important thing is to provide alternative drawable for ldpi, mdpi, hdpi and xhdpi. The layout should adjust automatically if the sizes are defined correctly (without absolute sizes, stretch to the width of the screen, etc.)

In the link you mentionned, check especially the section "Range of screens supported", it contains more information about this issue.

share|improve this answer
great! thank you :) @Raphael Titol –  antedesk Mar 20 '13 at 10:17
add comment

Your Answer


