Git Product home page Git Product logo

circleprogressbutton's Introduction

CircleProgressButton

progressButton

how to use

 <van.tian.wen.circleprogressbutton.CircleProgressButton
         android:layout_width="72dp"
         android:layout_height="72dp"
         van:circleColor="@android:color/holo_blue_light"
         van:progressColor="@android:color/holo_red_dark"
         van:progressWidth="2dp"
         van:textColor="@android:color/black"
         van:textSize="16sp" />

setText

circleProgressButton.setText("文字");

getProgressStatus

you can get progressStatus by implement CircleProgressButton.CircleProcessListener

circleProgressButton.setCircleProcessListener(new CircleProgressButton.CircleProcessListener() {
            @Override
            public void onFinished() {
                //长按结束了
                LogUtil.e("van====>onFinished");
            }

            @Override
            public void onCancel() {
                //长按取消了
                LogUtil.e("van====>onCancel");
            }

            @Override
            public void onCancelOk() {
                //长按取消了,并且进度到了0
                LogUtil.e("van====>onCancelOk");
            }

            @Override
            public void onReStart() {
                //长按结束了,在进度到0之前再次按了下去
                LogUtil.e("van====>onReStart");
            }
        });

circleprogressbutton's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.