Clarification::
A gradient is set on textView and the eventual outcome is in blur colour like in the first picture. How might I accomplish gradient without blur in the accompanying code, like in the second picture?.
val paint: TextPaint = binding!!.tvGetStarted.getPaint()
val width = paint.measureText("Get Started")
val textShader: Shader = LinearGradient(
0F, 0F, width, binding!!.tvGetStarted.getTextSize(), intArrayOf(
Color.parseColor("#F97C3C"),
Color.parseColor("#FDB54E"),
Color.parseColor("#64B678"),
Color.parseColor("#478AEA"),
Color.parseColor("#8446CC")
), null, Shader.TileMode.CLAMP
)
binding!!.tvGetStarted.getPaint().setShader(textShader)
Take references from Text with gradient in Android but nothing achieved desirably