Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niniloveyou/GradeProgressView
a progress view used to grade mobiles phone
https://github.com/niniloveyou/GradeProgressView
Last synced: about 1 month ago
JSON representation
a progress view used to grade mobiles phone
- Host: GitHub
- URL: https://github.com/niniloveyou/GradeProgressView
- Owner: niniloveyou
- License: apache-2.0
- Created: 2016-09-23T17:00:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-26T12:50:18.000Z (about 8 years ago)
- Last Synced: 2024-11-08T16:13:34.631Z (about 1 month ago)
- Language: Java
- Size: 2.14 MB
- Stars: 90
- Watchers: 3
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-android-ui - GradeProgressView - 用来评估移动电话的进度条视图 (进度条)
README
# GradeProgressView
a progress view used to grade mobiles phone![](https://github.com/niniloveyou/GradeProgressView/blob/master/gradeProgressView.gif)
#System Requirement
Android API 11+, Because of the use of ValueAnimation, if you want use it on API 8, please use NineoldAndroids library in your project.
#Usage
gradeProgressView.setProgress(100); //without animation
gradeProgressView.setProgressWidthAnimation(100); // with animation
gradeProgressView.setBackgroundColor(Color.LTGRAY); //set background color
gradeProgressView.setProgressColor(Color.WHITE); //set progress and pointer color
gradeProgressView.setLineWidth(60); //set the progress width
gradeProgressView.setGapWidth(30); //set gap between out line and progress line
gradeProgressView.setOutLineWidth(5); //set out line widht
gradeProgressView.setOnProgressChangeListener(new GradeProgressView.OnProgressChangeListener() {
@Override
public void onProgressChanged(GradeProgressView gradeProgressView, int progress) {
Log.i("GradeProgressView test", "on progress changed: " + progress);
}
});