Google Maps预测引用说:
Screen location is in screen pixels (not display pixels) with respect to the top left corner of the map (and not necessarily of the whole screen).
屏幕像素和显示像素有什么区别?官方documentation也没有回答问题。
最佳答案
- 显示像素“看起来一样”,即使屏幕不同 像素密度(像素密度由每个像素的大小决定 该屏幕中的像素)。
- 屏幕像素取决于像素的大小 在屏幕上。
例如,Retina Display 小工具的像素非常小,因此“1sp
”(sp = 屏幕像素)的宽度会非常小。 “1dp
”的宽度在 Retina Display 小工具和大像素屏幕中看起来是一样的。
关于android - 屏幕像素和显示像素有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17331565/