Java tutorial
//package com.java2s; import android.view.View; public class Main { /** * Calls {@link View#buildDrawingCache(boolean)}. If you call this * manually without calling {@link View#setDrawingCacheEnabled(boolean) * setDrawingCacheEnabled(true)}, you should clean up by calling * {@link View#destroyDrawingCache()} afterward. * * @param view what to build a drawing cache of */ public static void buildDrawingCache(View view, boolean autoScale) { view.buildDrawingCache(autoScale); } }