Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gpfduoduo/ModifiedStepsView
android下实现改进的StepsView android 下的分布进度条
https://github.com/gpfduoduo/ModifiedStepsView
Last synced: 3 months ago
JSON representation
android下实现改进的StepsView android 下的分布进度条
- Host: GitHub
- URL: https://github.com/gpfduoduo/ModifiedStepsView
- Owner: gpfduoduo
- Created: 2015-08-18T05:29:57.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-18T12:12:15.000Z (about 9 years ago)
- Last Synced: 2024-07-01T10:51:13.539Z (5 months ago)
- Language: Java
- Homepage:
- Size: 270 KB
- Stars: 56
- Watchers: 6
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ModifiedStepsView
改进的StepsView根据StepsView进行改进,添加了每一步进行的等待动画和每一步的执行结果动画
##具体的如下图所示
![image](https://github.com/gpfduoduo/ModifiedStepsView/blob/master/ModifiedStepsView/gif/device-2015-08-18-135551.png "效果图")
##使用方法
###activity的xml文件中添加:
###在你的activity中调用
stepsView = (StepsView) findViewById(R.id.steps_view);
final String[] steps = {"step1", "step2", "step3", "step4"};
stepsView.setLabels(steps)
.setColorIndicator(Color.GRAY)
.setBarColor(Color.GREEN)
.setLabelColor(Color.BLACK);new Thread() {
public void run() {
for (int i = 0; i < steps.length; i++) {
if(isStop) {
break;
}
Message msg = new Message();
msg.obj = i;
handler.sendMessage(msg);
try {
Thread.sleep(4000);
} catch (Exception e) {
}
}
Message msg = new Message();
msg.obj = steps.length;
handler.sendMessage(msg);
}
}.start();
'''