android capture view and animation
Bitmap b = Bitmap.createBitmap(targetView.getWidth(),
targetView.getHeight(),
Bitmap.Config.ARGB_8888);
Canvas c = new Canvas(b);
targetView.draw(c);
BitmapDrawable d = new BitmapDrawable(getResources(), b);
canvasView.setBackgroundDrawable(d);