public final class MemorySizeCalculator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MemorySizeCalculator.Builder
Constructs an
MemorySizeCalculator with reasonable defaults that can be optionally
overridden. |
Modifier and Type | Method and Description |
---|---|
int |
getArrayPoolSizeInBytes()
Returns the recommended array pool size for the device it is run on in bytes.
|
int |
getBitmapPoolSize()
Returns the recommended bitmap pool size for the device it is run on in bytes.
|
int |
getMemoryCacheSize()
Returns the recommended memory cache size for the device it is run on in bytes.
|
public int getMemoryCacheSize()
public int getBitmapPoolSize()
public int getArrayPoolSizeInBytes()