Skip to content

Instantly share code, notes, and snippets.

@givenjazz
givenjazz / gist:5626084
Last active April 19, 2016 12:39
It's BitmapCache for ImageLoader.ImageCache of Volley. It rarely use memory through WeakReference. And it's thread-safety.
/*
* Copyright 2013 Hi Zeon
* Copyright 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*