将view转成图片

推荐安卓开发神器(里面有各种UI特效和android代码库实例)

View viewConverted;   
  
Bitmap viewBitmap = Bitmap.createBitmap(viewConverted.getWidth(), viewConverted.getHeight(),Bitmap.Config.ARGB_8888);   
Canvas canvas = new Canvas(viewBitmap);   
  
viewConverted.draw(canvas);

相关推荐