Giter Club home page Giter Club logo

progressbar's Introduction

ProgressBar

last commit stars forks license

Contains CircleProgressBar and ProgressButton.

Cirlce ProgressBar Progress Button
Circle ProgressBar Progress Button

Gradle:

Add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
	...
	maven { url 'https://jitpack.io' }
    }
}

Add the dependency

dependencies {
    implementation 'com.github.imcloudfloating:ProgressBar:1.1'
}

Use Cirlce ProgressBar

<com.cloud.progressbar.CircleProgressBar
    android:id="@+id/circle_progress"
    android:layout_width="180dp"
    android:layout_height="180dp"
    android:gravity="center"
    android:textColor="#80cc33"
    android:textSize="22sp"
    android:text="Circle ProgressBar"
    app:progressBackColor=""#e0e0e0"
    app:progressColor="#80cc33"
    app:progressWidth="16dp" />

If you want a fanshaped progress bar, let progressWidth >= min(layout_width, layout_height)

cirlceProgressBar.setMinProgress(-100)   //minProgress can be negative, default is 0
circleProgressBar.setMaxProgress(100)    //default value is 100
circleProgressBar.setProgress(20)

Use Progress Button

<com.cloud.customviews.ProgressButton
    android:id="@+id/progress_button"
    android:layout_width="240dp"
    android:layout_height="wrap_content"
    android:textColor="#ffffff"
    android:text="Progress Button"
    app:cornerRadius="8dp"
    app:progressMargin="2dp"
    app:progressBackColor="#e0e0e0"
    app:progressColor="#80cc33"
    app:buttonColor="#80cc33" />
cirlceProgressBar.setMinProgress(-100)   //minProgress can be negative, default is 0
circleProgressBar.setMaxProgress(100)    //default value is 100
circleProgressBar.setProgress(20)

progressbar's People

Contributors

ifyun avatar

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

progressbar's Issues

cornerRadius

cornerRadius 值设置圆角时 会让进度条直接前进很大一部分

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.