阅读背景:

android view相对于根布局的坐标获取

来源:互联网 

android之View坐标系看下图就明白了:

引自官方文档:

Position
The geometry of a view is that of a rectangle. A view has a location, expressed as a pair of left and top coordinates, and two dimensions, expressed as a width and a height. The unit for location and dimensions is the pixel. Th




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: