title: RemoteViews is not saving correctly to bitmap with getDrawingCache
body: <p>I want to draw the Notification contentview, which is a RemoteViews, into a bitmap.</p>
  
  <p>I'm using this code:</p>
  
  <pre><code>private Bitmap getImageOfRemoteViews(RemoteViews rv) {
    try {
          View view = rv.apply(mContext, null);
          view.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED),
                  MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));
          view.layout(0, 0, view.getMeasuredWidth(), view.getMeasuredHeight());
          view.setDrawingCacheEnabled(true);
          view.buildDrawingCache(true);
          Bitmap screenshot = view.getDrawingCache(true);
          return screenshot;
      } catch (Exception e) {
          e.printStackTrace();
      }
      return null;
  }
  </code></pre>
  
  <p>the View is build into the bitmap but not the whole view, there is the right part missing.</p>
  
  <p>As it should be:
  <a href="http://imgur.com/vyFdy" rel="nofollow">http://imgur.com/vyFdy</a></p>
  
  <p>As it is:
  <a href="http://imgur.com/DnTsC" rel="nofollow">http://imgur.com/DnTsC</a></p>
  
  <p>By manually setting the layout like:</p>
  
  <pre><code>view.layout(0, 0, 720, 250);
  </code></pre>
  
  <p>only the background color is added but not the 2 textviews (here: "1:12" and "Info") </p>
  
  <p>Do someone have an idea how to fix this?</p>