HistoryItemView.java 文件源码

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

项目:365browser 作者:
@Override
public void onLargeIconAvailable(Bitmap icon, int fallbackColor,
        boolean isFallbackColorDefault) {
    // TODO(twellington): move this somewhere that can be shared with bookmarks.
    if (icon == null) {
        mIconGenerator.setBackgroundColor(fallbackColor);
        icon = mIconGenerator.generateIconForUrl(getItem().getUrl());
        mIconImageView.setImageDrawable(new BitmapDrawable(getResources(), icon));
    } else {
        RoundedBitmapDrawable roundedIcon = RoundedBitmapDrawableFactory.create(
                getResources(),
                Bitmap.createScaledBitmap(icon, mDisplayedIconSize, mDisplayedIconSize, false));
        roundedIcon.setCornerRadius(mCornerRadius);
        mIconImageView.setImageDrawable(roundedIcon);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号