开发者

setDrawingCacheEnabled

开发者 https://www.devze.com 2023-03-25 20:59 出处:网络
finalImgscreen //My View. fi开发者_如何学JAVAnalImage//My Bitmap finalImgscreen.setDrawingCacheEnabled(true);
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

精彩评论

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