Android的屏幕尺寸在像素LDPI,MDPI,HPDI? [英] Android screen sizes in Pixels for ldpi, mdpi, hpdi?

查看:93
本文介绍了Android的屏幕尺寸在像素LDPI,MDPI,HPDI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读10篇文章,但仍无法找到LDPI,MDPI,华电国际,并以像素为单位的实际尺寸之间的任何关系!?任何人都可以给出一个简单的答案,请(如果存在的话!)

I've read 10 articles yet still cant find any relation between ldpi, mdpi, hdpi and the actual dimensions in pixels!? Can anybody give a straightforward answer please(if there is one!)

基本上,我想放在一起,需要工作在多个设备上不拉伸闪屏 - !?但我挣扎的一切,我尝试要么挤压或拉伸

I'm basically trying to put together a splash screen that needs to work on multiple devices without stretching - but i'm struggling as everything I try is either squashed or stretched!?

干杯 保

推荐答案

在LDPI,MDPI和华电国际指屏幕像素密度,这意味着有多少像素可以放入一个单一英寸。

The ldpi, mdpi and hdpi refer to screen density, which means how much pixels can fit into a single inch.

在它们之间的像素的比例是:

the ratio in pixels between them is:

  • 在LDPI = 1:0.75
  • MDPI = 1:1
  • 华电国际= 1:1.5
  • 在xhdpi = 1:2
  • xxhdpi = 1:3
  • xxxhdpi = 1:4

所以让我们的图像有关的100X100大小:

so lets take an image with about the size of 100X100:

  • 为MDPI应该是100X100
  • 为LDPI应该是75X75
  • 为华电国际应该是150X150
  • 的xhdpi应该是200X200
  • 的xxhdpi应该是300X300
  • 的xxxhdpi应该是400X400

<强>这种方式,对于具有相同的大小,但不同的DPI屏幕,所有的图像似乎是同样大小的屏幕上。

你也有多个屏幕尺寸类型的小,中,大,XLARGE和他们每个人可以LDPI,MDPI,华电国际,xhdpi,xxhdpi(的Nexus 10)或xxxhdpi。

Also you have multiple screen size types small, normal, large, xlarge and each one of them can be ldpi, mdpi, hdpi, xhdpi, xxhdpi (Nexus 10) or xxxhdpi.

您可以尝试创建一个适合于每一个屏幕类型闪屏图像 它给你4 * 5 = 20个不同的图像(似乎很多对我来说)。

You can try to create a splash screen image that fit to each and every screen type which gives you 4*5 = 20 different images (it seems to much for me).

现在只有Nexus的10是在xxhdpi类别。

For now only the Nexus 10 is at the xxhdpi category.

这篇关于Android的屏幕尺寸在像素LDPI,MDPI,HPDI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆