Code example for Bitmap

Methods: getHeightgetRowBytes

0
    @Override 
    protected int sizeOf(String key, BitmapDrawable value) {
        if (value != null) {
            Bitmap b = value.getBitmap();
            if (b != null)
                return b.getRowBytes() * b.getHeight();
        } 
        return 0; 
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java