WindowManager.LayoutParams x/y 位置是基于 1 还是基于 0?

Is the WindowManager.LayoutParams x/y position 1-based or 0-based?

window 的 x/y 个位置是否声明为从 1 开始? (换句话说,包括 window 的第一个像素),因此对于 x=1y =1,window 将适合左上角而没有 1px 的间隙在它的左边缘和上边缘之前?

如果是这种情况,将 x/y 设置为 0/0 是否有效并被允许?这会导致 window 超出屏幕区域 1 像素吗?

左上角对应0/0x/y

更新: 参考Whosebug上的这个问题How do android screen coordinates work?