ShortcutUtils.java 文件源码

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

项目:Phoenix-for-VK 作者:
private static Bitmap createBitmap(Context mContext, String url) throws IOException {
    int appIconSize = getLauncherIconSize(mContext);
    Bitmap bm;

    Transformation transformation = new RoundTransformation();

    if (isEmpty(url)) {
        bm = PicassoInstance.with()
                .load(R.drawable.ic_avatar_unknown)
                .transform(transformation)
                .resize(appIconSize, appIconSize)
                .get();
    } else {
        bm = PicassoInstance.with()
                .load(url)
                .transform(transformation)
                .resize(appIconSize, appIconSize)
                .get();
    }

    return bm;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号