Android tips notes
•
Android
View.getLocationInWindow(int[] location)
The coordinate position of a control in its parent window
View.getLocationOnScreen(int[] location)
The coordinate position of a control on its entire screen
Getlocationinwindow is the coordinate of C with B as the origin
Getlocationonscreen takes a as the origin. All the positions returned are in the upper left corner.
Know that the Java language specification does not specify the order in which calls to super. Overridenmethod () must be placed (or if calls must be placed).
In the case of activity class, the super. Overridenmethod() call is required and forces:
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码