当前位置: 代码迷 >> Android >> Android-LinearGradient线性渐变
  详细解决方案

Android-LinearGradient线性渐变

热度:74   发布时间:2016-05-01 11:35:21.0
Android--LinearGradient线性渐变

 

 

Paint paint = new Paint();		LinearGradient gradient = new LinearGradient(0, 0, 100, 100, Color.RED, Color.YELLOW, Shader.TileMode.MIRROR);		paint.setShader(gradient);		canvas.drawRect(0, 0, 100, 100, paint);		canvas.drawText("This is the shader", 100, 100, paint);


 

1楼fire_work昨天 11:11
顶个
  相关解决方案