是真的DP设备无关? [英] is dp really device independent?
问题描述
这听起来很愚蠢,但我有困惑。
我已经定义了具有图像的条带的布局。条的高度被设定为有些X的DP。但
我可以看到的高度差,在不同的手机(三星注2它看起来比的Nexus 4大)。有人可以解释或提供一些有用的链接?
This sounds stupid , but I have confusion. I have defined a layout which have a stripe of images . Strip height is set as some x dp. But I can see difference in height , in difference phones (in samsung note2 it looks bigger than nexus 4). Can someone explain or provide some useful links ?
先谢谢了。
推荐答案
仅供参考,DP代表的密度独立的像素即可。
FYI, DP stands for Density independent pixel.
这里是屏幕像素密度的定义:
And Here is definition of Screen density:
屏幕密度
像素的一个物理区域内的量
屏幕;通常被称为DPI(每英寸点数)。例如,一个
低密度屏幕上有一个特定的物理区域内较少的像素,
相比于正常或高密度的屏幕。
The quantity of pixels within a physical area of the screen; usually referred to as dpi (dots per inch). For example, a "low" density screen has fewer pixels within a given physical area, compared to a "normal" or "high" density screen.
参考: http://developer.android.com/guide/practices/screens_support。 HTML
这篇关于是真的DP设备无关?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!