harjot-oberai / VectorMaster

Dynamic control over vector drawables!
MIT License
1.59k stars 161 forks source link

Set app:vector_src Programmatically #16

Open ghost opened 6 years ago

ghost commented 6 years ago

I'm having some troubles in order to achive this I got an xml file as my drawable, if I put the drawable on the xml it works nice, but I need to change the source to another view programmatically. I've tried different methods like:

But none of them works.

harjot-oberai commented 6 years ago

Currently there is no method to dynamically change the vector source. I will try to add a method as soon as possible, but I don't think its possible with the current implementation.

ghost commented 6 years ago

Okay, please let me know if you implements this it would be very helpful for me until the I guess I will have to go the dirty way and make all Views I need invisible or in a Fragment. Thanks anyway.