https://github.com/liuhuibin/TaoBaoProgressBar
使用说明:
1xml布局<com.liuhb.taobaoprogressbar.com.liuhb.taobaoprogressbar.view.CustomProgressBar
android:layout_width="match_parent"
android:layout_height="30dp"
app:progress="20"
app:max="100"
app:progressRadius="8dp"
app:progressDesc="已售"
app:isShowDesc="true"/>
2直接调用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);
https://mp.weixin.qq.com/s/eFflWMUGlR1-DgXAQCYing