In my application I want to set dynamically gradient colors to imageView
.
I can set solid color with the following code:
imageView.setColorFilter(ContextCompat.getColor(context, R.color.grayColor),
android.graphics.PorterDuff.Mode.MULTIPLY);
But I want to set gradient color instead of solid color.
How can I do it?