PaintableVectorView
PaintableVectorView enables to change color of paths/groups in Vector Drawable (SVG).
Dependency
Add the following lines in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add the dependency
dependencies {
implementation 'com.github.bardss:PaintableVectorView:1.0.0'
}
Usage
Create PaintableVectorView and add to the layout:
Set other paint type:
Set other paint color:
Reset layers color in PaintableVectorView: