Vectordrawable

Render vector graphics.
Latest Update Stable Release Release Candidate Beta Release Alpha Release
April 20, 2022 1.1.0 - 1.2.0-beta01 -

Declaring dependencies

To add a dependency on VectorDrawable, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.

Add the dependencies for the artifacts you need in the build.gradle file for your app or module:

Groovy

dependencies {
    implementation "androidx.vectordrawable:vectordrawable:1.1.0"

    /* To be able to animate properties of a VectorDrawable, add the following.  Useful for
     * illustration purposes or state changes in response to user events
     */
    implementation "androidx.vectordrawable:vectordrawable-animated:1.1.0"

    /* To use a seekable alternative for `androidx.vectordrawable:vectordrawable-animated` add the
     * following
     */
     implementation "androidx.vectordrawable:vectordrawable-seekable:1.0.0-beta01"
}

Kotlin

dependencies {
    implementation("androidx.vectordrawable:vectordrawable:1.1.0")

    /* To be able to animate properties of a VectorDrawable, add the following.  Useful for
     * illustration purposes or state changes in response to user events
     */
    implementation("androidx.vectordrawable:vectordrawable-animated:1.1.0")

    /* To use a seekable alternative for `androidx.vectordrawable:vectordrawable-animated` add the
     * following
     */
     implementation("androidx.vectordrawable:vectordrawable-seekable:1.0.0-beta01")
}

For more information about dependencies, see Add build dependencies.

Feedback

Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.

Create a new issue

See the Issue Tracker documentation for more information.

Vectordrawable-Seekable 1.0.0

Version 1.0.0-beta01

April 20, 2022

androidx.vectordrawable:vectordrawable-seekable:1.0.0-beta01 is released with no changes since 1.0.0-alpha02. Version 1.0.0-beta01 contains these commits.

VectorDrawable-Seekable Version 1.0.0-alpha02

August 19, 2020

androidx.vectordrawable:vectordrawable-seekable:1.0.0-alpha02 is released. Version 1.0.0-alpha02 contains these commits.

Bug Fixes

Vectordrawable-Seekable Version 1.0.0-alpha01

April 15, 2020

androidx.vectordrawable:vectordrawable-seekable:1.0.0-alpha01 is released. Version 1.0.0-alpha01 contains these commits.

New Features

androidx.vectordrawable:vectordrawable-seekable is a seekable alternative for androidx.vectordrawable:vectordrawable-animated with some additional features. It supports the same XML format as AnimatedVectorDrawable.

  • Pause and resume
  • Seek (setCurrentPlayTime)
  • Enhanced callbacks

See SeekableAnimatedVectorDrawable for the details.

Version 1.2.0

Version 1.2.0-beta01

April 20, 2022

androidx.vectordrawable:vectordrawable:1.2.0-beta01 is released with no changes since 1.2.0-alpha02. Version 1.2.0-beta01 contains these commits.

VectorDrawable Version 1.2.0-alpha02

August 19, 2020

androidx.vectordrawable:vectordrawable:1.2.0-alpha02 is released. Version 1.2.0-alpha02 contains these commits.

Bug Fixes

Vectordrawable Version 1.2.0-alpha01

April 15, 2020

androidx.vectordrawable:vectordrawable:1.2.0-alpha01 is released. Version 1.2.0-alpha01 contains these commits.

New Features

  • This release does not have any new public features. It is a necessary dependency when you use androidx.vectordrawable:vectordrawable-seekable-1.0.0-alpha01.

Version 1.1.0

Version 1.1.0

September 5, 2019

androidx.vectordrawable:vectordrawable:1.1.0 and androidx.vectordrawable:vectordrawable-animated:1.1.0 are released. The commits included in this version can be found here.

Important changes since 1.0.0

New features

  • fillType is now supported in ClipPath
  • Tinting is now supported using ColorStateLists defined with theme attrs in VectorDrawableCompat

Bug fixes

  • Fixed bug in rendering VectorDrawables with gradients (b/117796719)
  • Fixed getColorFilter() that returned null even when it was set (aosp/762198)

Version 1.1.0-rc01

July 2, 2019

androidx.vectordrawable:vectordrawable:1.1.0-rc01 and androidx.vectordrawable:vectordrawable-animated:1.1.0-rc01 are released with no changes from 1.1.0-beta02. The commits included in this version can be found here.

Version 1.1.0-beta02

June 5, 2019

androidx.vectordrawable:vectordrawable:1.1.0-beta02 and androidx.vectordrawable:vectordrawable-animated:1.1.0-beta02 are released. The commits included in this version can be found here.

Bug fixes

  • Change vectordrawable-animated package name (aosp/963431)

Version 1.1.0-beta01

May 7, 2019

androidx.vectordrawable:vectordrawable:1.1.0-beta01 and androidx.vectordrawable:vectordrawable-animated:1.1.0-beta01 are released. The commits included in this version can be found here.

New features

  • fillType is now supported in ClipPath

Version 1.1.0-alpha01

December 3, 2018

New features

  • Support tinting using ColorStateLists defined with theme attrs in VectorDrawableCompat.

Bug fixes

  • Fixed bug in rendering VectorDrawables with gradients (aosp/790377)
  • Fixed getColorFilter() that returned null even when it was set (aosp/762198)

Version 1.0.0

Version 1.0.0

November 7, 2018

New features