BlurEngine.java 文件源码

java
阅读 38 收藏 0 点赞 0 评论 0

项目:MVVMFrames 作者:
@Override
@SuppressLint("NewApi")
protected void onPostExecute(Void aVoid) {
    super.onPostExecute(aVoid);

    view.destroyDrawingCache();
    view.setDrawingCacheEnabled(false);

    activity.getWindow().addContentView(
            blurredBackgroundView,
            blurredBackgroundLayoutParams
    );

    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR1) {
        blurredBackgroundView.setAlpha(0f);
        blurredBackgroundView
                .animate()
                .alpha(1f)
                .setDuration(300)
                .setInterpolator(new LinearInterpolator())
                .start();
    }
    view = null;
    bitmap = null;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号