📜  为 android paint 设置渐变颜色 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:55.392000             🧑  作者: Mango

代码示例1
paint.setShader(new LinearGradient(0, 0, 0, getHeight(), Color.BLACK, Color.WHITE, Shader.TileMode.MIRROR));
    canvas.drawPath(arrowPath, paint);