Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/liuhuibin/TaoBaoProgressBar

一个模仿淘宝秒杀商品页面的进度条
https://github.com/liuhuibin/TaoBaoProgressBar

Last synced: 2 months ago
JSON representation

一个模仿淘宝秒杀商品页面的进度条

Awesome Lists containing this project

README

        

#一个模仿淘宝秒杀商品页面的进度条

##Feature
有进度条加载动画

###Snapshot
![snapshot](https://github.com/liuhuibin/TaoBaoProgressBar/blob/master/.raw/snapshot3.gif)

##Usage

```XML

```

###Advanced

```Java
mProgressBar = (CustomProgressBar) findViewById(R.id.cpb_progresbar);
mProgressBar.setOnFinishedListener(new CustomProgressBar.OnFinishedListener() {
@Override
public void onFinish() {
Toast.makeText(MainActivity.this,"done!",Toast.LENGTH_SHORT).show();
}
});
mProgressBar.setOnAnimationEndListener(new CustomProgressBar.OnAnimationEndListener() {
@Override
public void onAnimationEnd() {
Toast.makeText(MainActivity.this,"animation end!",Toast.LENGTH_SHORT).show();
}
});
mProgressBar.setProgressDesc("剩余");
mProgressBar.setMaxProgress(100);
mProgressBar.setProgressColor(Color.parseColor("#F6CB82"));
mProgressBar2.setCurProgress(70,2000);
```