78
What is the difference between screen and view in the context of these two methods?
I have a button and I want to get the x coordinate of its center.
I guess this would be enough:
public int getButtonXPosition() {
return (button.getLeft()+button.getRight())/2;
}
but then, what difference would it make if I would have used
getLocationOnScreen() or getLocationInWindow() ?
(adding half of the button's width to that, of course)