title: How to get the correct X,Y coordinates of a DragEvent.ACTION_DROP
body: <p>I'm having trouble getting the X,Y coordinates of a DragEvent ACTION_DROP.</p>
  <p>I am attempting to animate a gridview cell drag and drop, animating the cell from the X,Y of the release point to the new X,Y.</p>
  <p>Below is the code I am using to try and get the X,Y coordinates. However it does not return the values that I would expect.</p>
  <pre><code> @Override
   public boolean onDrag(View v, DragEvent event) {
   
     switch (action) {
       case DragEvent.ACTION_DROP:
         float x = event.getX();
         float y = event.getY();
       break;
     }
  }
  </code></pre>
  <p>Dragging the first gridview cell to the adjacent cell to the right gives me these values.</p>
  <blockquote>
  <p>Drop X,Y: 176.0,127.0</p>
  <p>SourceView X,Y: 0.0,0.0</p>
  <p>TargetView X,Y 360.0,0.0</p>
  </blockquote>
  <ul>
  <li>The Drop values are the values returned from the DragEvent. The</li>
  <li>SourceView values are the from the cell where the drag was started.</li>
  <li>The TargetView values are from the cell where the drag event ended.</li>
  </ul>
  <p>Can anyone point me in the right direction of how to get the X,Y coordinates of the release point of the DragEvent? Or explain what the getX() and getY() of a DragEvent actually returns?</p>
  <p>Thanks</p>