Giter Site home page Giter Site logo

liuzhipeng1214 / circleprogress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mylifemytravel/circleprogress

2.0 1.0 0.0 5.78 MB

Android自定义圆形进度条

Home Page: http://www.littlejie.com/2017/03/02/Android-%E8%87%AA%E5%AE%9A%E4%B9%89View%E4%B9%8B%E5%9C%86%E5%BD%A2%E8%BF%9B%E5%BA%A6%E6%9D%A1%E6%80%BB%E7%BB%93/

Java 100.00%

circleprogress's Introduction

圆形进度条

Android 自定义圆形进度条,包括传统传统的圆形(CircleProgress)、刻度(DialProgress)、水波纹(WaveProgress)效果的三种圆形进度条。

效果图如下:

圆形进度条

刻度及水波纹进度条

使用方法

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

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

Add the dependency:

	dependencies {
    	   compile 'com.github.LiuZhiPeng1214:CircleProgress:0.0.1-beta'
    	}

XML 配置

关于 XML 的配置请见 circleprogress module 下的 attrs.xml 文件

key value description
showUnitPosition right , below 设置单位的显示模式
antiAlias boolean 是否开启抗锯齿
startAngle float 圆弧起始角度,3点钟方向为0,顺时针递增,小于0或大于360进行取余
sweepAngle float 圆弧度数
animTime integer 设置动画时间
maxValue float 绘制内容数值
value float 绘制内容数值
hint string,reference 内容提示语
hintSize dimension 提示语字体大小
hintColor color,reference 提示语字体颜色
unit String,reference 单位
unitSize dimension 单位字体大小
unitColor color,reference 单位颜色
precision integer 精度,默认为0
valueSize dimension 值的字体大小
valueColor color,reference 值的颜色
arcColor1,arcColor2,arcColor3 color,reference 圆弧颜色,设置多个可实现渐变
baArcColor color,reference 背景圆弧颜色
arcWidth dimension 圆弧宽度
arcColors color,reference 圆弧颜色
textOffsetPercentInRadius float 文字的偏移量。相对于圆半径而言,默认三分之一

circleprogress's People

Contributors

liuzhipeng1214 avatar mylifemytravel avatar

Stargazers

 avatar  avatar

Watchers

 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.