简体   繁体   English

确定的Android屏幕尺寸

[英]Definitive android screen sizes

I have looked at the pages here on stackoverflow regarding this issue and followed up by looking at the links provided as some of the answers provided but I am still very confused. 我已经在stackoverflow上查看了关于这个问题的页面,然后查看提供的链接作为提供的一些答案,但我仍然非常困惑。 I use Photoshop to develop my screen shots in my android apps. 我使用Photoshop在我的Android应用程序中开发我的屏幕截图。 It breaks down to this, there are four folders in the res folder for the different phone types Small Medium Large X-Large. 它分解为此,res文件夹中有四个文件夹,用于不同的手机类型Small Medium Large X-Large。 If I want to create an image to be used as a background that fills in the background completely and I am creating that image in the default resolution on Photoshop of 72 pixels per inch, what methodology and dimensions should I use for each image? 如果我想创建一个用作完全填充背景的背景的图像,并且我在Photoshop上以每英寸72像素的默认分辨率创建该图像,我应该为每个图像使用什么方法和尺寸?

The specification I use in the manifest file would be set up as fill parent for both width and height. 我在清单文件中使用的规范将被设置为宽度和高度的填充父级。

I do understand there are many types of phones with different screen sizes but I need the most generic 我知道有很多类型的手机有不同的屏幕尺寸,但我需要最通用的

As I understand it the images will be resized to fit screens but I that in itself leads to the creation of strange images if the original is not originally setup to be somewhat close. 根据我的理解,图像将被调整大小以适应屏幕,但如果原始设置不是有点接近,我本身会导致创建奇怪的图像。

So I need the somewhat close dimensions of a typical background image for each folder. 所以我需要每个文件夹的典型背景图像的稍微接近的尺寸。

Small -> X_Dim x Y_Dim 小 - > X_Dim x Y_Dim

Medium -> X_Dim x Y_Dim 中 - > X_Dim x Y_Dim

Large -> X_Dim x Y_Dim 大 - > X_Dim x Y_Dim

X-Large -> X_Dim x Y_Dim X-Large - > X_Dim x Y_Dim

Four folders four sets of dimensions 四个文件夹四组尺寸

Again I am using Photoshop and 72 pixel/inch 我再次使用Photoshop和72像素/英寸

The screen sizes are different concept with screen dpis 屏幕尺寸与屏幕dpis不同

So, based on your question the most generic screen resolution for each dpi are: 因此,根据您的问题,每个dpi的最通用的屏幕分辨率是:

ldpi 240 x 320px ldpi 240 x 320px

mdpi 320 x 480px mdpi 320 x 480px

hdpi 480 x 800px hdpi 480 x 800px

xhdpi 720 x 1280px xhdpi 720 x 1280px

I am talking about the generic screen resolution that each ldpi/mdpi/hdpi/xhdpi commonly has, so if you could create assets with these four sizes, it will fit most devices. 我说的是每个ldpi / mdpi / hdpi / xhdpi通常具有的通用屏幕分辨率,因此如果您可以创建具有这四种尺寸的资产,它将适合大多数设备。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM