android中的像素密度 [英] Density of pixels in android

查看:76
本文介绍了android中的像素密度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我的Android设备屏幕尺寸为5英寸,屏幕宽度为2.3英寸,其屏幕支持1080 * 1920像素的屏幕密度最接近的类型是什么?如何解决这个问题。

If I have android device with 5 inches diagonal screen size and 2.3 inches screen width and its screen supports 1080*1920 pixels what is the nearest type of its screen density?how can solve this question.

推荐答案

这完全取决于您设备的制造商,他如何设置像素和所有其他东西。



但是,在Android中有一些内置功能支持不同的屏幕 [ ^ ]。您可以在不同的文件夹中添加图形资源,Android会自动检查哪个最适合每个设备。这就是高像素密度设备和低像素密度设备能够看到(。)用户界面相同结果的方式。



无论如何,您为我们提供的价值( 1080x1920 )具有PPI(像素/英寸) 100.13 PPI。您可以在以下网址尝试不同的值: https://www.sven.de/dpi/ [ ^ ]。
That totally depends on your device's manufacturer, how he has set up the pixels and all other stuff.

However, in Android there are some built-in features for supporting different screens[^]. You can add your graphics resources in different folders, and Android would automatically check which of them is best suitable for each device. That is how, high and low pixel density devices are able to see (approx.) the same results of the user-interface.

Anyways the value you have provided us with (1080x1920) has a PPI (pixels per inch) of 100.13 PPI. You can try out different values at: https://www.sven.de/dpi/[^].


这篇关于android中的像素密度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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