Skip to content

Commit

Permalink
Fix jakob-grabner#12: Show text in spinning mode.
Browse files Browse the repository at this point in the history
Fix jakob-grabner#11 text color white (which is -1) was treated as "no color" constant. Use setAutoTextColor(boolean) not to define auto color behaviour.
Added: Custom start angle, use setStartAngle(int)
Added: Annotations for value ranges.
  • Loading branch information
jakob-grabner committed Sep 5, 2015
1 parent d9b8100 commit 7215721
Show file tree
Hide file tree
Showing 14 changed files with 1,066 additions and 776 deletions.
1 change: 1 addition & 0 deletions CircleProgressView/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ android {
}

dependencies {
compile 'com.android.support:support-annotations:22.2.0'
}

// build a jar with source files
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package at.grabner.circleprogress;

enum AnimationMsg {

START_SPINNING,
STOP_SPINNING,
SET_VALUE,
SET_VALUE_ANIMATED,
TICK

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package at.grabner.circleprogress;

public enum AnimationState {

IDLE,
SPINNING,
END_SPINNING,
END_SPINNING_START_ANIMATING,
START_ANIMATING_AFTER_SPINNING, ANIMATING

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package at.grabner.circleprogress;

public interface AnimationStateChangedListener{

/**
* Call if animation state changes.
* This code runs in the animation loop, so keep your code short!
* @param _animationState
*/
void onAnimationStateChanged(AnimationState _animationState);
}
Loading

0 comments on commit 7215721

Please sign in to comment.