Android : Getting location of Views in Android in double format

on Friday, September 5, 2014


I am developing my own Custom Focus Manager for Android as there is a requirement.I need the X and Y coordinates of any view in Android.I am using : getLocationOnScreen(arr); but this returns an Integer array.I need the coordinates to be in double so that when I do the calculations,it doesnt round off the values.Is there any way to get the X and Y coordinates in double ?


0 comments:

Post a Comment