Difference between android dimension: pt and dp

前端 未结 7 1949
迷失自我
迷失自我 2020-11-30 18:28

The documentation says that 160 dp (density-independent) equals 1 inch. And 72 pt is also 1 inch. So I don\'t see why android define a dp measurement while it seems to work

7条回答
  •  囚心锁ツ
    2020-11-30 19:05

    1 dp will always equal 1/160 in, regardless of screen density.

    This is not true as shown by your application... Agree?

    BR STeN

提交回复
热议问题