(Context context)
| 84 | } |
| 85 | |
| 86 | public Switch(Context context) { |
| 87 | super(context); |
| 88 | rectF = new RectF(); |
| 89 | |
| 90 | paint = new Paint(Paint.ANTI_ALIAS_FLAG); |
| 91 | paint2 = new Paint(Paint.ANTI_ALIAS_FLAG); |
| 92 | paint2.setStyle(Paint.Style.STROKE); |
| 93 | paint2.setStrokeCap(Paint.Cap.ROUND); |
| 94 | paint2.setStrokeWidth(LayoutHelper.dp(2)); |
| 95 | } |
| 96 | |
| 97 | @Keep |
| 98 | public void setProgress(float value) { |