2014年10月8日 星期三

solve buildDrawingCache() view too large to fit into drawing cache android

Bitmap b1 = Bitmap.createBitmap(v.getWidth(), v.getHeight(),
Config.ARGB_8888);
Canvas canvas = new Canvas(b1);

v.draw(canvas);

return b1;