@Override
protected void onBindInformation() {
StatsSnapshot info = Picasso.with(getContext())
.getSnapshot();
setSubHeading("Cache", String.format("%s / %s (%f percent)",
humanReadableByteCount(info.size, true),
humanReadableByteCount(info.maxSize, true),
((info.size * 100f) / info.maxSize)));
setValue("\tHits", String.valueOf(info.cacheHits));
setValue("\tMisses", String.valueOf(info.cacheMisses));
setSubHeading("Decoded", String.valueOf(info.downloadCount));
setValue("\tTotal", humanReadableByteCount(info.totalDownloadSize, true));
setValue("\tAverage", humanReadableByteCount(info.averageDownloadSize, true));
setSubHeading("Transformed", String.valueOf(info.transformedBitmapCount));
setValue("\tTotal", humanReadableByteCount(info.totalTransformedBitmapSize, true));
setValue("\tAverage", humanReadableByteCount(info.averageTransformedBitmapSize, true));
}
PicassoCard.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:Green
作者:
评论列表
文章目录