Code example for Bitmap

Methods: getHeightgetRowBytes

0
    protected int sizeOf(T key, Drawable value) {
        int size = 0;
        if (value instanceof BitmapDrawable) {
            final Bitmap b = ((BitmapDrawable) value).getBitmap();
            if (b != null) {
                size = b.getRowBytes() * b.getHeight();
            } 
        } 
        return size;
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java