Resource preprocessing options.
Constructor and description |
---|
PreprocessingOptions
() |
Type | Name and description |
---|---|
Set<String> |
getDensities() Set of screen densities for which PNG files should be generated based on vector drawable resource files. |
boolean |
getPreprocessResources() Whether to enable resources pre-processing. |
Set<com.android.resources.Density> |
getTypedDensities() Returns the densities to generate as the underlying enum values. |
void |
setDensities(Set<String> densities) |
void |
setPreprocessResources(boolean preprocessResources) |
Set of screen densities for which PNG files should be generated based on vector drawable resource files.
Default to ["mdpi", "hdpi", "xhdpi", "xxhdpi"]
.
Whether to enable resources pre-processing. This is disabled by default.
If resources pre-processing is enabled, the build process will create two copies of the resource tree: one with a merged view of resources for a given variant and one with the preprocessed files, ready to be packaged. This may slow down your clean builds.
Returns the densities to generate as the underlying enum values.
Not meant to be used in build scripts.