Android进度条:RopeProgressBar

jopen 9年前
根据https://dribbble.com/shots/1887815-Download 效果图做出的进度条,github上还有另外一个实现:ElasticDownload,可以将两者比较一下。

Attributes

Attribute Type Default Usage
app:max integer 0 The max value of the progress bar
app:progress integer 0 The current value of the progress bar
app:primaryColor color @attr/colorControlActivated Color used for the progress completed
app:secondaryColor color @attr/colorControlHighlight Color used for the progress remaining
app:slack dimension 32dp The max vertical "bend" of the progress bar
app:strokeWidth dimension 8dp The width of the progress bar line
app:dynamicLayout boolean false If the progress bar should change in height as slack changes

Note: Pre-Lollipop,app:primaryColordefaults to #009688 andapp:secondaryColordefaults to #DADADA

运行效果:

使用说明:


repositories {      maven {          url "https://jitpack.io"      }  }    dependencies {      compile 'com.github.cdeange:RopeProgressBar:0.1.0'  }

项目主页:http://www.open-open.com/lib/view/home/1436094545754