Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.koushikdutta.ion;
 
 import  android.graphics.Bitmap;
 
 class LruBitmapCache extends LruCache<String, Bitmap> {
     public LruBitmapCache(int maxSize) {
         super(maxSize);
     }
 
    @Override
    protected int sizeOf(String key, Bitmap value) {
        return value.getRowBytes() * value.getHeight();
    }
New to GrepCode? Check out our FAQ X