Back to project page Dreamer.
The source code is released under:
Apache License
If you think the Android project Dreamer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.android.fancyblurdemo.app; /* w ww.java 2s. c o m*/ import android.graphics.Bitmap; import android.util.LruCache; import com.android.fancyblurdemo.volley.toolbox.ImageLoader; /** * Created by kevin.marlow on 2/21/14. */ public class BitmapLruImageCache extends LruCache<String, Bitmap> implements ImageLoader.ImageCache { public BitmapLruImageCache(int maxSize) { super(maxSize); } @Override protected int sizeOf(String key, Bitmap value) { return value.getByteCount(); } @Override public Bitmap getBitmap(String url) { return get(url); } @Override public void putBitmap(String url, Bitmap bitmap) { put(url, bitmap); } }