title: Capture ViewGroup into an Image File
body: <p>I have a simple combination of one <code>ImageView</code> and two <code>TextViews</code> over it. I would like to make the <code>TextViews</code> overlap the <code>ImageView</code>, and then save the combination as a whole (as PNG for example).</p>
  
  <p>I know I can layer the <code>TextViews</code> over the <code>ImageView</code> using a <code>FrameLayout</code>, which I am already doing. Now what I am wondering is, how can I export that to an image?</p>
  
  <p>I read various posts about using a Canvas. Is there a way to just export the <code>FrameLayout</code> as a PNG image, say, or do I need to create a canvas, add the <code>ImageView</code> and <code>TextViews</code>, and export the canvas itself as a PNG?</p>
  
  <p>Thank you in advance.</p>