Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace multiple colors #29

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 0 comments
Open

Replace multiple colors #29

GoogleCodeExporter opened this issue Mar 15, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

First, thanks for your updates.

I'm looking for the option to change multiple colors on the same SVG file. I 
didn't see any option to do so. I didn't dived deeply into the code, so I'm not 
sure if you have technical difficulties to do so or not.

I think that sending 2 arrays of colors, or a map of colors, that the search 
color would be the key and the value would be the replace color would seems 
logic. 

Some other approach can be as in the project 
https://github.com/josefpavlik/svg-android/blob/master/svgandroid/src/com/larval
abs/svgandroid/SVGParser.java which forked like you from the original 
svg-android project. He did the color switch based on the id, look for "public 
static SVG getSVGFromResource(Resources resources, int resId, HashMap<String, 
Integer> idToColor)"

Your project looks like the most updated one, therefore I thought that it was 
more logical to import those changes to your project.

By the way, there are some other changes in his project that you don't have, it 
might worth trying to merge his changes to your project.

Again, thanks

Original issue reported on code.google.com by [email protected] on 31 Mar 2014 at 2:51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant