Android Paint Gradient Code Example
Example: set gradient color for android paint
paint.setShader(new LinearGradient(0, 0, 0, getHeight(), Color.BLACK, Color.WHITE, Shader.TileMode.MIRROR)); canvas.drawPath(arrowPath, paint);
paint.setShader(new LinearGradient(0, 0, 0, getHeight(), Color.BLACK, Color.WHITE, Shader.TileMode.MIRROR)); canvas.drawPath(arrowPath, paint);
Comments
Post a Comment