Remove Tint Color Programmatically in Android [duplicate]

I think if above things doesn’t works, you can try adding the image again to the imageview programatically, while adding it again programatically don’t set tintcolor for it, it will be inflated with the original color

    myImgView.setImageResource(R.drawable.yourDrwable);

or I think this should work for you.

    imageview.setColorFilter(null)

or

    imageView.clearColorFilter()

or

    imageView.drawable.setTintList(null)

or

    ImageViewCompat.setImageTintList(imageView, null);

updated based on the comments

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)