RichPath icon indicating copy to clipboard operation
RichPath copied to clipboard

android.content.res.Resources$NotFoundException: Can't find ColorStateList from drawable

Open tachyonlabs opened this issue 5 years ago • 2 comments

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.

tachyonlabs avatar Mar 07 '20 02:03 tachyonlabs

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!

tarek360 avatar Jun 10 '20 02:06 tarek360

is there anyone contribute in this feature? if not i can give my hand

buidiemnhi avatar Aug 08 '20 17:08 buidiemnhi