Remove Tint Color Programmatically in Android

android

Solution

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

Problem

I want to programmatically remove (reset) my ImageView Tint color which was already set in XML layout.

Original source

Related problems