RichPath
RichPath copied to clipboard
android.content.res.Resources$NotFoundException: Can't find ColorStateList from drawable
I'm getting a crash just inflating the layout with a com.richpath.RichPathView and my VectorDrawable (which comes up fine and correctly in an ImageView). I had a similar problem when I had tried https://github.com/devendroid/VectorChildFinder right beforehand -- an issue there said that it happened with VectorDrawables containing gradients, which mine has, so maybe your library has the same problem.
I think it crashes for the same reason, RichPath doesn't support gradients so far!
Ideally, it shouldn't crash for a non-supported feature, it should print a warning in debug mode to make the developer aware of that!
Let me know If you want to contribute, I will be more than happy to point you to the right place in the code. it should be done in two steps, parsing the gradient XML tag, then render it on the canvas!
is there anyone contribute in this feature? if not i can give my hand