VectorDrawables

Added in 4.2.0

interface VectorDrawables


DSL object used to configure vector drawable options.

Summary

Public functions

Unit
@Incubating
generatedDensities(vararg densities: String)

Densities used when generating PNGs from vector drawables at build time.

Public properties

MutableSet<String>?

Densities used when generating PNGs from vector drawables at build time.

Boolean?

Whether to use runtime support for vector drawables, instead of build-time support.

Public functions

generatedDensities

Added in 4.2.0
@Incubating
fun generatedDensities(vararg densities: String): Unit

Densities used when generating PNGs from vector drawables at build time. For the PNGs to be generated, minimum SDK has to be below 21.

If set to an empty collection, all special handling of vector drawables will be disabled.

See Supporting Multiple Screens.

Public properties

generatedDensities

Added in 4.2.0
val generatedDensitiesMutableSet<String>?

Densities used when generating PNGs from vector drawables at build time. For the PNGs to be generated, minimum SDK has to be below 21.

If set to an empty collection, all special handling of vector drawables will be disabled.

See Supporting Multiple Screens.

useSupportLibrary

Added in 4.2.0
var useSupportLibraryBoolean?

Whether to use runtime support for vector drawables, instead of build-time support.

See Vector Asset Studio.