1

Thais is what I have done. I try to support this screen sizes:

xlarge screens 640dp x 960dp
large screens 480dp x 800dp
normal screens 320dp x 400dp
small screens 240dp x 400dp

So I create etc. background images with that sizes (640dp x 960dp, 480dp x 800dp, 320dp x 400dp and 240 x 400). I put images in folders drawabale-xhdpi, drawabale-hdpi, drawabale-mdpi and drawabale-ldpi. When I have xlarge screen with hdpi density (it use images from hdpi folder), graphic is bad (images are not large enough). So how to use that xlarge image when I have hdpi density. Do I have to create more images and put them in some places? This is a game, I draw all in canvas, don't use layouts for drawing images.

Thanks.

4

4 回答 4

1

drawable-xlarge-hdpi您可以在文件夹中添加新的可绘制对象

于 2012-10-02T08:54:09.807 回答
0

使用此路径保存您的图像

res/drawable-xhdpi/my_icon.png       // bitmap for extra high density

检查此支持多个屏幕以获取有关多屏幕支持的更多说明。

于 2012-10-02T08:56:08.813 回答
0

看看这个链接 -提供资源

您可以在drawable-xlarge-hdpi文件夹中有图像

于 2012-10-02T08:57:24.903 回答
-1

始终使用相对布局来支持多个屏幕。看到这里相同密度不同对角线长度的Android布局

于 2012-10-02T09:13:15.860 回答