今天产品中要实现这样的需求,想了想还是把它给整出来了!
第一步:自定义View
实现步骤:
1、先画好圆弧
2、再画第一根线
3、最后再画第二根线
/**
* DrawHook
* Created by Zane on 2015/3/4.
*/
public class DrawHookView extends View {
//绘制圆弧的进度值
private int progress = 0;
//线1的x轴
private int line1_x = 0;
//线1的y轴
private int line1_y = 0;
//线2的x轴
private int line2_x = 0;
//线2的y轴
private int line2_y = 0;
public DrawHookView(Context conte
版权声明:本文为zz1175854992原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。