<what is the difference between setImageDrawable a...
# stackoverflow
u
what is the difference between setImageDrawable and setImageResource when using vector drawable? I have an ImageView and an vector image with a gradient tag in it. I tried displaying the image with several methods and it produced varying results in Android 21. I have set vectorDrawables.useSupportLibrary = true in my project. Using setImageResource(), vector image displayed successfully image.setImageResource(R.drawable.xarisanv2_img_success_payment)` Using setImageDrawable(AppCompatResources.getDrawable(), vector image displayed successfully...