17
17
import android .util .TypedValue ;
18
18
import android .view .View ;
19
19
20
- /**
21
- * @author tkdco , TutorialsAndroid
22
- */
23
20
public class ProgressWheel extends View {
21
+
24
22
private final int barLength = 16 ;
25
- /**
26
- * *********
27
- * DEFAULTS *
28
- * **********
29
- */
23
+
30
24
//Sizes (with defaults in DP)
31
25
private int circleRadius = 28 ;
32
26
private int barWidth = 4 ;
@@ -37,6 +31,7 @@ public class ProgressWheel extends View {
37
31
private float barExtraLength = 0 ;
38
32
private boolean barGrowingFromFront = true ;
39
33
private long pausedTimeWithoutGrowing = 0 ;
34
+
40
35
//Colors (with defaults)
41
36
private int barColor = 0xAA000000 ;
42
37
private int rimColor = 0x00FFFFFF ;
@@ -65,9 +60,6 @@ public class ProgressWheel extends View {
65
60
66
61
private boolean shouldAnimate ;
67
62
68
- /**
69
- * The constructor for the ProgressWheel
70
- */
71
63
public ProgressWheel (Context context , AttributeSet attrs ) {
72
64
super (context , attrs );
73
65
@@ -76,9 +68,6 @@ public ProgressWheel(Context context, AttributeSet attrs) {
76
68
setAnimationEnabled ();
77
69
}
78
70
79
- /**
80
- * The constructor for the ProgressWheel
81
- */
82
71
public ProgressWheel (Context context ) {
83
72
super (context );
84
73
setAnimationEnabled ();
@@ -99,10 +88,6 @@ public ProgressWheel(Context context) {
99
88
shouldAnimate = animationValue != 0 ;
100
89
}
101
90
102
- //----------------------------------
103
- //Setting up stuff
104
- //----------------------------------
105
-
106
91
@ Override protected void onMeasure (int widthMeasureSpec , int heightMeasureSpec ) {
107
92
super .onMeasure (widthMeasureSpec , heightMeasureSpec );
108
93
0 commit comments