Skip to content

CircleProgress, DonutProgress, ArcProgress

Notifications You must be signed in to change notification settings

windgithub/CircleProgress

Repository files navigation

Android Arsenal

inspired from https://github.com/daimajia/NumberProgressBar

and CleanMaster

CleanMaster

###Demo

CircleProgress

###Demo download link

###3 kinds of progress view are provided, DonutProgress, CircleProgress, ArcProgress

##Usage

###Gradle

dependencies{compile 'com.github.lzyzsd:circleprogress:1.1.0@aar' }

###Maven

<dependency> <groupId>com.github.lzyzsd</groupId> <artifactId>circleprogress</artifactId> <version>1.1.0</version> <type>apklib</type> </dependency>

###Notice

please always use same width and height for progress views

DonutProgress

 <com.github.lzyzsd.circleprogress.DonutProgress android:layout_marginLeft="50dp"android:id="@+id/donut_progress"android:layout_width="wrap_content"android:layout_height="wrap_content"custom:donut_progress="30"/>

DonutProgress

attrs for DonutProgress

 <declare-styleablename="DonutProgress"> <attrname="donut_progress"format="integer"/> <attrname="donut_max"format="integer"/> <attrname="donut_unfinished_color"format="color"/> <attrname="donut_finished_color"format="color"/> <attrname="donut_finished_stroke_width"format="dimension"/> <attrname="donut_unfinished_stroke_width"format="dimension"/> <attrname="donut_text_size"format="dimension"/> <attrname="donut_text_color"format="color"/> <attrname="donut_prefix_text"format="string"/> <attrname="donut_suffix_text"format="string"/> <attrname="donut_background_color"format="color"/> </declare-styleable>

CircleProgress

 <com.github.lzyzsd.circleprogress.CircleProgress android:id="@+id/circle_progress"android:layout_marginLeft="50dp"android:layout_width="100dp"android:layout_height="100dp"custom:circle_progress="20"/>

CircleProgress

attrs for CircleProgress

 <declare-styleablename="CircleProgress"> <attrname="circle_progress"format="integer"/> <attrname="circle_max"format="integer"/> <attrname="circle_unfinished_color"format="color"/> <attrname="circle_finished_color"format="color"/> <attrname="circle_text_size"format="dimension"/> <attrname="circle_text_color"format="color"/> <attrname="circle_prefix_text"format="string"/> <attrname="circle_suffix_text"format="string"/> </declare-styleable>

ArcProgress

 <com.github.lzyzsd.circleprogress.ArcProgress android:id="@+id/arc_progress"android:background="#214193"android:layout_marginLeft="50dp"android:layout_width="100dp"android:layout_height="100dp"custom:arc_progress="55"custom:arc_bottom_text="MEMORY"/>

ArcProgress

attrs for ArchProgress

 <declare-styleablename="ArcProgress"> <attrname="arc_progress"format="integer"/> <attrname="arc_angle"format="float"/> <attrname="arc_stroke_width"format="dimension"/> <attrname="arc_max"format="integer"/> <attrname="arc_unfinished_color"format="color"/> <attrname="arc_finished_color"format="color"/> <attrname="arc_text_size"format="dimension"/> <attrname="arc_text_color"format="color"/> <attrname="arc_suffix_text"format="string"/> <attrname="arc_suffix_text_size"format="dimension"/> <attrname="arc_suffix_text_padding"format="dimension"/> <attrname="arc_bottom_text"format="string"/> <attrname="arc_bottom_text_size"format="dimension"/> </declare-styleable>

###Build

run ./gradlew assembleDebug (Mac/Linux)

or

run gradlew.bat assembleDebug (Windows)

###Changes

version 1.1.0: add bottom text to DonutProgressView

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004

Copyright (C) 2014 Bruce Lee <bruceinpeking#gmail.com>

Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.

 DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 

TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  1. You just DO WHAT THE FUCK YOU WANT TO.

About

CircleProgress, DonutProgress, ArcProgress

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java100.0%