title: IllegalStateException: drag shadow dimensions must be positive
body: <p><a href="https://developer.android.com/reference/android/view/View.DragShadowBuilder#public-constructors" rel="nofollow noreferrer">https://developer.android.com/reference/android/view/View.DragShadowBuilder#public-constructors</a></p>
  
  <p>When I use the second constructor outlined above - 
  "View.DragShadowBuilder()
  Construct a shadow builder object with no associated View."</p>
  
  <p>the following exception is raised: 
  java.lang.IllegalStateException: Drag shadow dimensions must be positive</p>
  
  <p>The second line of code here causes this for me:</p>
  
  <pre><code>public boolean onLongClick(View view) {
      view.startDragAndDrop(null, new View.DragShadowBuilder(), view, 0); 
      return true;
  }
  </code></pre>
  
  <p>It occurs on Android 9 Pie only. I have tried it on previous Android versions with no problem. I created an issue on the Android issue tracker, but maybe someone here knows why it happens or how to resolve it.</p>
  
  <p>In the meantime I am creating the new View.DragShadowBuilderView(view) with view being a transparent ImageView which stops the crash for now but I am not sure if it is the best solution. </p>