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);
1.4m articles
1.4m replys
5 comments
57.0k users