Android examples for User Interface:View Bitmap
capture View as Bitmap
//package com.java2s; import android.graphics.Bitmap; import android.view.View; public class Main { public static Bitmap captureView(View v) { v.setDrawingCacheEnabled(true);//from w ww .j a va 2 s . c om v.buildDrawingCache(); return v.getDrawingCache(); } }