开发者

setDrawingCacheEnabled

finalImgscreen //My View.

fi开发者_如何学JAVAnalImage     //My Bitmap

finalImgscreen.setDrawingCacheEnabled(true);

finalImage = finalImgscreen.getDrawingCache();

This works Fine on QVGA screen Emulator/Device,but shows black screen on HVGA screen Emulator/Device.

Can you help me out of it.


before calling getDrawingCache()

Call onLayout(boolean changed, int left, int top, int right, int bottom);

Try onLayout(true,0,0,100,100);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜