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

Set app:vector_src Programmatically #16

Open
xamo1998 opened this issue Jun 16, 2018 · 2 comments
Open

Set app:vector_src Programmatically #16

xamo1998 opened this issue Jun 16, 2018 · 2 comments

Comments

@xamo1998
Copy link

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:

  • setBackground()

  • setBackgroudResource()

But none of them works.

@harjot-oberai
Copy link
Owner

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.

@xamo1998
Copy link
Author

xamo1998 commented Jun 16, 2018

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.

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

No branches or pull requests

2 participants