title: get dragged shadow location on View.OnDragListener
body: <p>I am using drag and drop functionality in my application. It works fine. Now i am facing issue while animating view when view comes back to it's original position if it is not placed on dropped view.</p>
  
  <p>I have created my shadow view by </p>
  
  <pre><code>  View.DragShadowBuilder shadowBuilder = new MyDragShadowBuilder(view);
                                  view.startDrag(data, shadowBuilder, view, 0);
  </code></pre>
  
  <p>And my shadowbuilder class is,</p>
  
  <pre><code>private static class MyDragShadowBuilder extends View.DragShadowBuilder {
      private static Drawable shadow;
  
      public MyDragShadowBuilder(View v) {
          // Stores the View parameter passed to myDragShadowBuilder.
          super(v);
          v.buildDrawingCache();
          shadow =  new BitmapDrawable(v.getDrawingCache());
      }
  
      @Override
      public void onProvideShadowMetrics (Point size, Point touch){
          // Defines local variables
          int width, height;
          width = (int)(getView().getWidth() * 1.1);
          height =(int)(getView().getHeight() * 1.1);
          shadow.setBounds(0, 0, width, height);
          size.set(width, height);
          touch.set(width / 2, height / 2);
      }
  
      @Override
      public void onDrawShadow(Canvas canvas) {
          // Draws the ColorDrawable in the Canvas passed in from the system.
          shadow.draw(canvas);
      }
  }
  </code></pre>
  
  <p>Now, when i found unsuccessful drop, then i want my view to get animated and go back to it's original position.</p>
  
  <pre><code>   case DragEvent.ACTION_DRAG_ENDED:
                  if (!event.getResult()) {
                        if (dragged.getTag() == v.getTag()){
                           int[] location={0,0};
                           v.getLocationOnScreen(location);
                           Log.v("values::", "x:" + x + "  - y:" +x);
                           addViewRemoveViewFromWindow(dragged, location);
                      }
                  }
  
                  break;
  </code></pre>
  
  <p>I am able to get my view's original position in <code>location</code> array i.e. my end position. And i want my that dragged view(shadow view) position on screen. But i am not able to get it in any cases. Have tried to get it on <code>DragEvent.ACTION_DRAG_LOCATION:</code> case but with no luck. It always returns position of either original view's position or dropped view position. I want dragged shadow images's location. I want to apply translation animation in window between two locations. That animating view in window between 2 locations works fine when i tried by using 2 static locations.</p>