How would I extend TextView to allow the drawing of text with a gradient effect?
TextView
TextView secondTextView = new TextView(this); Shader textShader=new LinearGradient(0, 0, 0, 20, new int[]{Color.GREEN,Color.BLUE}, new float[]{0, 1}, TileMode.CLAMP); secondTextView.getPaint().setShader(textShader);
2.1m questions
2.1m answers
60 comments
57.0k users