Possible Duplicate:
Android 2.1 View's getDrawingCache() method always returns null
I hava a Layout which I want to save an bitmap.
If my Layout is smaller than the screen everything is fine. But if my Layout is bigger, the bitmap (b) is null.
This is my code:
layout.setDrawingCacheEnabled(true);
int wt = layout.getMeasuredWidth();
int ht = layout.getMeasuredHeight();
layout.layout(0, 0, wt, ht);
Bitmap b = layout.getDrawingCache(true);
So how can I get the whole View as an Bitmap?