VectorDrawables

public interface VectorDrawables


DSL object used to configure vector drawable options.

Summary

Public methods

abstract void

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

abstract Set<@NonNull String>

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

abstract Boolean

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

abstract void
setUseSupportLibrary(Boolean useSupportLibrary)

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

Public methods

generatedDensities

@Incubating
abstract void generatedDensities(@NonNull String densities)

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.

getGeneratedDensities

@Incubating
abstract Set<@NonNull StringgetGeneratedDensities()

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.

getUseSupportLibrary

abstract Boolean getUseSupportLibrary()

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

See Vector Asset Studio.

setUseSupportLibrary

abstract void setUseSupportLibrary(Boolean useSupportLibrary)

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

See Vector Asset Studio.