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 下的分布进度条

Lists

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();
'''