title: Drag & drop displaced
body: <p>I've been writing a simple app using drag &amp; drop, wich works fine, except for a little detail. When I hold for first time the ImageView that contains the drag action, the DragShadowBuilder places the miniature view on a wrong place. The weirdest part is that later, it fixes itself, and operation continues perfectly well.
  This is a image showing the behavior (I'm holding the Contacts app icon, and see where the thumbnail is)</p>
  
  <p><img src="https://i.stack.imgur.com/EkMZZ.png" alt="displaced"></p>
  
  <p>This is the code I use</p>
  
  <pre><code>        View v = inflater.inflate(R.layout.recent_entry, null);
          ImageView img = (ImageView)v.findViewById(R.id.recent_icon);
  
          img.setOnTouchListener(new View.OnTouchListener(){
  
              @Override
              public boolean onTouch(View view, MotionEvent me) {
                  if (me.getAction() == MotionEvent.ACTION_DOWN){
                      DragShadowBuilder shadowBuilder = new View.DragShadowBuilder(view);
                      view.startDrag(null, shadowBuilder, null, 0);
                      mLaunchIntent = holder.getLaunchIntent();
                      mSelectedItem = view;
                      mRecentDetails.setVisibility(View.GONE);
                  }
                  return true;
              }
          });          
  </code></pre>