title: TextView shadow destroyed while capture image
body: <p>Shadow gets destroyed while capturing image of textview.</p>
  
  <p>I added text shadow programmatically using setShadowLayer.</p>
  
  <pre><code>tv.setShadowLayer(20, 0, 0, Color.BLACK);
  </code></pre>
  
  <p>when I capture image using </p>
  
  <pre><code>tv.buildDrawingCache(true);
  tv.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH);
  tv.setDrawingCacheEnabled(true);
  </code></pre>
  
  <p>and getting bitmap using</p>
  
  <pre><code>bitmap = tv.getDrawingCache();
  </code></pre>
  
  <p>Original Image on Screen</p>
  
  <p><a href="https://i.stack.imgur.com/Z7bMn.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Z7bMn.png" alt="enter image description here"></a></p>
  
  <p>Captured Image</p>
  
  <p><a href="https://i.stack.imgur.com/QfESL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/QfESL.png" alt="enter image description here"></a></p>
  
  <p>Also tried to capture parent layout but same result.</p>