Android View left top right bottom mscrollx mscrolly coordinates view left top right Bottom
The left top right bottom of Android view is relative to the parent's spatial data
View MSCROLLX mscrolly
We know three important stages of the view drawing:
1. Measure: Pre-estimate the space occupied by each view of the Viewtree.
2. Layout: Determine the spatial location of each view in the Viewtree, including Width,height,left,top,right,bottom
3. Draw: Use a Mglcanvas object in Rootview as the canvas, and all the view on the Viewtree is drawn on this canvas, it is worth noting that if
The area of the drawing exceeds the screen, and Android does not display these drawn content.
In Android view, the original intent of mscrollx,mscrolly is
Mscrollx/mscrolly the vertical/horizontal pixel offset relative to the view's content (text, picture, sub-view). Such as:
After setting the mscrollx/mscrolly, you can scroll to the specified "content", and mscrollx/mscrolly is the offset from the "content".
The content origin is (0,0).
Android left top right bottom mscrollx mscrolly coordinates explained