android - 屏幕像素和显示像素有什么区别

标签 android screen pixel

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/

相关文章:

python - python中使用Maclaurin系列e ^ x的实现

android - 什么布局适合 720x1280 Android 设备?

android - 如何获得屏幕的密度?

python - 如何将 Tkinter 与 Python 登录屏幕集成?

macos - 如何从屏幕上读取一个像素?

java - 在 Edittext 中输入十进制值?

android - 来自非 UI 线程的 Toast

java - 单击单选按钮时如何显示微调器

Android Twitter 和 Fabric 集成

javascript - HTML 和 CSS : fixed pixel height seems to be rendered differently in diffent screens/devices