1717import android .util .TypedValue ;
1818import android .view .View ;
1919
20- /**
21- * @author tkdco , TutorialsAndroid
22- */
2320public class ProgressWheel extends View {
21+
2422 private final int barLength = 16 ;
25- /**
26- * *********
27- * DEFAULTS *
28- * **********
29- */
23+
3024 //Sizes (with defaults in DP)
3125 private int circleRadius = 28 ;
3226 private int barWidth = 4 ;
@@ -37,6 +31,7 @@ public class ProgressWheel extends View {
3731 private float barExtraLength = 0 ;
3832 private boolean barGrowingFromFront = true ;
3933 private long pausedTimeWithoutGrowing = 0 ;
34+
4035 //Colors (with defaults)
4136 private int barColor = 0xAA000000 ;
4237 private int rimColor = 0x00FFFFFF ;
@@ -65,9 +60,6 @@ public class ProgressWheel extends View {
6560
6661 private boolean shouldAnimate ;
6762
68- /**
69- * The constructor for the ProgressWheel
70- */
7163 public ProgressWheel (Context context , AttributeSet attrs ) {
7264 super (context , attrs );
7365
@@ -76,9 +68,6 @@ public ProgressWheel(Context context, AttributeSet attrs) {
7668 setAnimationEnabled ();
7769 }
7870
79- /**
80- * The constructor for the ProgressWheel
81- */
8271 public ProgressWheel (Context context ) {
8372 super (context );
8473 setAnimationEnabled ();
@@ -99,10 +88,6 @@ public ProgressWheel(Context context) {
9988 shouldAnimate = animationValue != 0 ;
10089 }
10190
102- //----------------------------------
103- //Setting up stuff
104- //----------------------------------
105-
10691 @ Override protected void onMeasure (int widthMeasureSpec , int heightMeasureSpec ) {
10792 super .onMeasure (widthMeasureSpec , heightMeasureSpec );
10893
0 commit comments