摘要: 雷达.gif 定义一些变量 private int width, height, radius; private SweepGradient sweepGradient; private Paint paint = new Paint(); private Matrix matrix = new M 阅读全文
posted @ 2020-01-07 11:18 aruba_233 阅读(29) 评论(0) 推荐(0)
摘要: 霓虹灯文字.gif 首先自定义一个控件继承TextView,使用LinearGradient进行渲染 @Override protected void onSizeChanged(int w, int h, int oldw, int oldh) { super.onSizeChanged(w, h 阅读全文
posted @ 2020-01-07 10:33 aruba_233 阅读(23) 评论(0) 推荐(0)
摘要: 除了BitmapShader外,还有几种渲染 1.LinearGradient--线性渲染 参数 float left 渲染区域的左坐标float top 渲染区域的上坐标float right 渲染区域的右坐标float bottom 渲染区域的下坐标float colors[] 渲染的颜色数组f 阅读全文
posted @ 2020-01-07 09:32 aruba_233 阅读(17) 评论(0) 推荐(0)