Hi so I'm trying to get the location of an imageview in android using
xPosition = view.getLeft();
yPosition = view.getTop();
But it keeps returning 0 no matter where the imageview happens to be. The same also occurs when using
view.getLocationOnScreen(int[] location);
Does anybody have any ideas why this might be?