forked from jakob-grabner/Circle-Progress-View
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix jakob-grabner#12: Show text in spinning mode.
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
1 parent
d9b8100
commit 7215721
Showing
14 changed files
with
1,066 additions
and
776 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
365 changes: 365 additions & 0 deletions
365
CircleProgressView/src/main/java/at/grabner/circleprogress/AnimationHandler.java
Large diffs are not rendered by default.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
CircleProgressView/src/main/java/at/grabner/circleprogress/AnimationMsg.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
CircleProgressView/src/main/java/at/grabner/circleprogress/AnimationState.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
...leProgressView/src/main/java/at/grabner/circleprogress/AnimationStateChangedListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
Oops, something went wrong.