I am converting Bitmap into Drawable using following code.
MemoryCache memoryCache = new MemoryCache();
Bitmap bitmap = memoryCache.get(thumbnail);
Drawable drawable = (Drawable)new BitmapDrawable(bitmap);
The MemoryCache I have used is from LazyList Project and it works fine when I use bitmap but when I convert it to drawable then it shows nothing in place of image.
Please Help
Change this line:
To:
Note that the
BitmapDrawable(Bitmap bitmap)constructor has been deprecated (source) and using the above call apparently ensures it gets set correctly with the right target density.