Last active
August 29, 2015 14:03
-
-
Save julenka/d698d6cab52ebcc6c1bc to your computer and use it in GitHub Desktop.
get view location #android
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Functions to set up the view's size and position */ | |
| private int[] getViewPos() { | |
| int[] loc = {0, 0}; | |
| this.getLocationOnScreen(loc); | |
| return loc; | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment