Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liuhuibin/TaoBaoProgressBar
一个模仿淘宝秒杀商品页面的进度条
https://github.com/liuhuibin/TaoBaoProgressBar
Last synced: 2 months ago
JSON representation
一个模仿淘宝秒杀商品页面的进度条
- Host: GitHub
- URL: https://github.com/liuhuibin/TaoBaoProgressBar
- Owner: liuhuibin
- Created: 2015-05-22T09:25:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-28T14:02:39.000Z (about 9 years ago)
- Last Synced: 2024-08-05T19:35:25.519Z (6 months ago)
- Language: Java
- Size: 340 KB
- Stars: 204
- Watchers: 12
- Forks: 62
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-android-ui - https://github.com/liuhuibin/TaoBaoProgressBar
- awesome-android-ui - https://github.com/liuhuibin/TaoBaoProgressBar
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);
```