Skip to content

mantas84/TaoBaoProgressBar

 
 

Repository files navigation

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

##Feature 有进度条加载动画

###Snapshot snapshot

##Usage

<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"/>

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%