Need help with TaoBaoProgressBar?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

liuhuibin
201 Stars 64 Forks 15 Commits 0 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

# 293,789
Java
15 commits

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

Feature

有进度条加载动画

Snapshot

snapshot

Usage


Advanced

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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.