title: How to get x,y coordinates
body: <p>One of the activities in my Android app  has a relative layout with two imageviews, which are set up in an xml layout file. How can I programmatically get x,y location of the imageviews</p>
  
  <p>Will these coordinates be different dependent on screen size and density?</p>
  
  <p>What I want to do is have the user touch image1 which will then be animated to move to the location of image2.</p>
  
  <p>Obviously, since I placed these images in the xml I know their x,y coordinates, but I'm concerned that these coordinates will vary dependent on the screen size and density.</p>