All Projects → bardss → Paintablevectorview

bardss / Paintablevectorview

PaintableVectorView enables to change color of paths/groups in Vector Drawable (SVG)

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Paintablevectorview

Show Case Card View
Show case card view
Stars: ✭ 151 (-3.21%)
Mutual labels:  library
Python Quickui
Scientific One-Liner Interactive GUI Library
Stars: ✭ 153 (-1.92%)
Mutual labels:  library
Android Ui Animation Components And Libraries
Android UI libraries, components and animations by @Ramotion
Stars: ✭ 1,982 (+1170.51%)
Mutual labels:  library
Libcache
A Lightweight in-memory key:value cache library for Go.
Stars: ✭ 152 (-2.56%)
Mutual labels:  library
Aerogameframework
AeroGameFramework is a Roblox game framework that makes development easy and fun. The framework is designed to simplify the communication between modules and seamlessly bridge the gap between the server and client.
Stars: ✭ 150 (-3.85%)
Mutual labels:  library
Rot.js
ROguelike Toolkit in JavaScript. Cool dungeon-related stuff, interactive manual, documentation, tests!
Stars: ✭ 2,002 (+1183.33%)
Mutual labels:  library
Library Template Android
A Kotlin + Android library template (with a sample project).
Stars: ✭ 151 (-3.21%)
Mutual labels:  library
Dem.net
Digital Elevation model library in C#. 3D terrain models, line/point Elevations, intervisibility reports
Stars: ✭ 153 (-1.92%)
Mutual labels:  library
Php Ip Tools
Useful tools for IP manipulations
Stars: ✭ 152 (-2.56%)
Mutual labels:  library
Atty
are you or are you not a tty?
Stars: ✭ 153 (-1.92%)
Mutual labels:  library
Routeros Api Php
Mikrotik RouterOS API PHP client for your applications
Stars: ✭ 152 (-2.56%)
Mutual labels:  library
Deeply
PHP client for the DeepL.com translation API (unofficial)
Stars: ✭ 152 (-2.56%)
Mutual labels:  library
Jails
An alternative for Javascript Vanilla Applications
Stars: ✭ 153 (-1.92%)
Mutual labels:  library
Layerjs
layerJS: Javascript UI composition framework
Stars: ✭ 1,825 (+1069.87%)
Mutual labels:  library
Harfbuzz
HarfBuzz text shaping engine
Stars: ✭ 2,206 (+1314.1%)
Mutual labels:  library
Opends
Template Library of Data Structures in C++17
Stars: ✭ 151 (-3.21%)
Mutual labels:  library
Garland View Android
≡ GarlandView seamlessly transitions between multiple lists of content. Made by @Ramotion
Stars: ✭ 1,855 (+1089.1%)
Mutual labels:  library
Ofxgpio
Library C++ for raspberrypi and orangepi, GPIO interfaces compatible with openframeworks.
Stars: ✭ 155 (-0.64%)
Mutual labels:  library
Codeeditor
Code Editor Native Way
Stars: ✭ 155 (-0.64%)
Mutual labels:  library
Gappein Chat Sdk
A plug and play modular toolkit for integrating the Chat feature on top of Firebase!
Stars: ✭ 154 (-1.28%)
Mutual labels:  library

PaintableVectorView

PaintableVectorView enables to change color of paths/groups in Vector Drawable (SVG)

Demo

Alt Text

Car icon made by Prosymbols from www.flaticon.com

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:

val paintableView = PaintableVectorView(
    context = this,
    drawableId = R.drawable.ic_car,
    paintType = PaintType.PAINT_PATH,
    paintColor = resources.getColor(R.color.blue)
)
layout.addView(paintableView)

Set other paint type:

paintableView.paintType = PaintType.PAINT_GROUP

Set other paint color:

paintableView.paintColor = resources.getColor(R.color.blue)

Reset layers color in PaintableVectorView:

paintableView.resetColors()

License

Copyright 2019 Jakub Aniola

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].