阅读背景:

Android普通截屏(不包括状态栏内容但有状态栏占位)

来源:互联网 
    public static Bitmap normalShot(Activity activity) {
        View decorView = activity.getWindow().getDecorView();
        decorView.setDrawingCacheEnabled(true);
        decorView.buildDrawingCache();
        Bitmap bitmap = Bitmap.createBitmap(decorView.getDrawingCache(), 0, 0,
                decorView.getMeasuredWidth(), decorView.getMeasuredHeight());

        decorView.setDrawingCacheEnabled(false);
        decorView.destroyDrawingCache();
        return bitmap;
    }    public static Bitmap normalShot(Activity ac



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: