开发者

Android layouts, drawables, and resolution, what is the best way?

I d like to develop to screen resolutions:

854*480 800*480 480*320

what is the correct /res structure for this?

#1
drawable-854x480
drawable-800x480
drawable-480x320

layout-854x480
layout-800x480
layout-480x320

or

#2
drawable-hdpi-854x4开发者_如何学编程80
drawable-hdpi-800x480
drawable-mdpi-480x320

layout-hdpi-854x480
layout-hdpi-800x480
layout-mdpi-480x320

or

#3
drawable-hdpi-long
drawable-hdpi-notlong
drawable-mdpi

layout-hdpi-long
layout-hdpi-notlong
layout-mdpi

or else?

i am totally confused, because Galaxy S not use the "800x480" directory, why? I think Galaxy S i9000 is a 3.7 inch, 800*480 device..

I d like to optimize my program version 1.5

update: If i havent "drawable" and "layout" folders, then i get "resource not found exception"


So my probleme is this:

Different resources for WVGA800 and WVGA854?

anybody a solution for this?


drawable-hdpi-854x480 drawable-hdpi-800x480 drawable-mdpi-480x320

layout-854x480

put a single image in three different folder (HDPI(72*72),LDPI(48*48),MDPI(36*36)) with the fallowing ratio and put only one layout for that. I hope this is help.


Hello i think android drawable resolution is-

10" - 1280 X 800

7" - 1024 X 600

xhdpi - 960 x 720

hdpi - 800 X 480

mdpi - 480 X 320

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜