I want to set some vectorDrawables to a ImageView in Android Studio.
I can set png and jpg drawable easily but when i want to set V
As per official android developer blog, no changes for setImageResource() method at runtime for vectorDrawables.
If you’re changing drawables at runtime, you’ll be able to use the same setImageResource() method as before - no changes there. Using AppCompat and app:srcCompat is the most foolproof method of integrating vector drawables into your app.
For more details, check out this nice article AppCompat — Age of the vectors by Google Developer.