title: LayerDrawable to bitmap
body: <p>I'm using a LayerDrawable to merge multiple Drawable. Now, I'd like to export my LayerDrawable to a file.</p>
  
  <p>I've tried this way:</p>
  
  <pre><code>Bitmap b = ((BitmapDrawable)myLayerDrawable).getBitmap();
  --&gt; ClassCastException...
  </code></pre>
  
  <p>What can I do?</p>