Bitmap mScreenshot;
View activityView = getWindow().getDecorView();
activityView.setDrawingCacheEnabled(true);
activityView.destroyDrawingCache();
activityView.buildDrawingCache();
mScreenshot = activityView.getDrawingCache();
网友评论