Android進度條:RopeProgressBar
根據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' }
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!