long or notlong
As you know you can name layout or resource folders with “-long” or “-notlong” postfix.
Documentation says:
- long - resources for screens of any size or density that have a significantly taller (in portrait mode) and wider (in landscape mode) aspect ratio than the baseline screen configuration.
- notlong - resources for use only on screens that have an aspect ratio that is similar to the baseline screen configuration.
What does it mean in practice?
hvga – notlong
qvga – notlong
wqvga400 – long
wqvga432 – long
wvga800 – long
wvga854 – long
i.e. if you have aspect ration > 1.5 like 1.78 (480×854) long folders will be used by Android.
For example if you scale layout hvga (1.5) to wvga854 (1.78) – you should take into account additional 480*1.5=720; 854-730=134 pixels in the middle.
p.s. Motorola Flipout is notlong also because it is just landscape qvga.
//DL
June 12th, 2010 in
android, device, xml layout | tags: android, aspect ratio, layout, long, notlong, resource


Hell Sir,
long folders will be used by Android if aspect ratio > 1.5.
I understood this part. But, what does this mean?
“if you scale layout hvga (1.5) to wvga854 (1.78) – you should take into account additional 480*1.5=720; 854-730=134 pixels in the middle”
Thank you,
Ram
That means you should have something that scales correctly in the middle. Or have different layout for WVGA screen
Hi villain_dm,
Thank you much.
Ram