Quantcast
Channel: CSDN博客推荐文章
Viewing all articles
Browse latest Browse all 35570

Android--LinearGradient线性渐变

$
0
0

 

 

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);


 

作者:zlQQhs 发表于2013-2-23 2:47:01 原文链接
阅读:103 评论:0 查看评论

Viewing all articles
Browse latest Browse all 35570

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>