高分辨率的手持设备可绘制文件夹文件夹、高分辨率、设备

2023-09-04 12:16:43 作者:食人尸

我无法弄清楚如何产生可绘制新的高清晰度的手持设备,如Galaxy Nexus的,One X的,银河S3等具有1280×720或更高的分辨率。

I can't figure out how to produce drawables for the new "high-res" handhelds like the Galaxy Nexus, One X, Galaxy S3 etc that have a resolution of 1280x720 or higher.

我总是尽量让尽可能少的布局版本成为可能。 preferably只有一个,但有时一个布局长notlong是必要的。而且使XML足够的智慧来处理所有设备。但这只是可能的,如果绘制资源在那里提供所有不同的分辨率和尺寸。

I always try to make as few layout-versions as possible. Preferably just one but at times a layout-long and notlong is necessary. And make the xml smart enough to handle all devices. But that's only possible if the drawable resources are there to supply all the different resolutions and sizes.

所有一直不错,流畅,直至新的大的手机来了,我发现,可绘有小他们。没有xxhdpi文件夹还没有从谷歌,所以我一定是做错了什么。

All has been nice and smooth until the new big phones arrived and I find that the drawables are to small for them. No xxhdpi-folder yet from Google so I must be doing something wrong.

我知道这是禁止提到的像素在这里,但仍必须使用Photoshop或其他一些基于像素的应用程序,使可绘制。因此,你需要知道如何大,使这些可绘制。

I know it's forbidden to mention pixels here but still you have to use photoshop or some other pixel based application to make the drawables. Therefore you need to know how big to make these drawables.

这是我到目前为止,完成的:

This is what i've done so far:

xhdpi:640×960

xhdpi: 640x960

华电国际:480×640

hdpi: 480x640

MDPI:小32​​0x480

mdpi: 320x480

LDPI:240×​​320

ldpi: 240x320

的问题是,当一个1280×720的设备获取可绘制从xhdpi夹东西启动面色差,图像太小,有在它们之间太多空间。

The problem is that when a 1280x720 device gets the drawables from the xhdpi folder things starts looking bad, the images are too small and there's too much space between them.

那你基于你绘制的源文件吗? xhdpi在1028x720?这打乱了降低水库的版本我。

What do you base your drawable source files on? xhdpi in 1028x720? That messes up the lower res versions for me.

我有一个广告代理呼吸了我的脖子奇怪,为什么它看起来并不完美的,因为在iPhone上...

I have an ad agency breathing down my neck wondering why it doesn't look as perfect as on the iPhone...

推荐答案

嗯,正如我上面说的我无法找到任何Android的手持设备上多数民众赞成得到了640×960的分辨率。所以,我根据我所有的图片上720x1280代替,把640×960分辨率的东西在大华电国际文件夹。

Well, as I said above I can't find any handhelds with Android on it that's got a resolution of 640x960. So I based all my images on 720x1280 instead and put the 640x960 resolution stuff in a large-hdpi folder.

现在我的应用程序在最新的Nexus看起来不错,银河S3,HTC的one-X和所有的其他新员工的模型。我认为,平板电脑寻找资源去为大,再华电国际在那里他们会发现2倍缩放图像时。

Now my app looks great on the latest Nexus, the Galaxy S3, HTC One-X and all of the other newer hires models. I think the tablets when looking for resources will go for large first, then hdpi where they will find the 2x scaled images.

这是我结束了:

xhdpi:720x1280

xhdpi: 720x1280

大华电国际:640×960

large-hdpi: 640x960

华电国际:480×640

hdpi: 480x640

MDPI:小32​​0x480

mdpi: 320x480

LDPI:240×​​320

ldpi: 240x320