从缓存中获取位图(Resouce)

要从缓存中获取资源,只需传递资源的密钥(本例中为 String)

public Bitmap getResourceFromMemoryCache(String key) {
    memoryCache.get(key);
}