Two screens with the same dimensions but different resolutions

后端 未结 2 1298
一生所求
一生所求 2021-01-23 17:22

Assume we have two android devices with the same screen dimensions, but with different resolutions. Is the following true or not: if dp unit is used to set the sizes of all view

2条回答
  •  無奈伤痛
    2021-01-23 17:47

    Yes, dp (or dip) means density independent pixel. Source

    So it's independent of the pixel density of the device.

提交回复
热议问题