android - 5.7英寸小米note和6.1英寸华为mate7,相同的布局显示不同的效果
伊谢尔伦
伊谢尔伦 2017-04-17 17:40:20
0
2
658

我很纳闷,5.0英寸、6.1英寸的华为手机能将相同的布局显示完整,然而小米note的手机能显示完整但是最底下却又一块空白,3个手机的分辨率都是1920*1080,不知道这是为什么???

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
小葫芦

Their ppi is different, the same dp displays different sizes.
dp and px conversion formula:
dp*ppi/160 = px. For example, 1dp x 320ppi/160 = 2px.

PPI = Pixels per inch, the number of pixels per inch, that is, "pixel density"

The calculation method of

ppi is:

PPI = √(length pixels² + width pixels²) / screen diagonal inches

Ty80

The resolution is the same, but the screen size must be different. Then you use the dp unit, which is related to the pixel density, so the display will be different.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template