Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/bingoogolapple/BGAProgressBar-Android

带百分比数字的水平、圆形进度条
https://github.com/bingoogolapple/BGAProgressBar-Android

Last synced: 1 day ago
JSON representation

带百分比数字的水平、圆形进度条

Lists

README

        

:running:BGAProgressBar-Android:running:
============

## 主要功能:
- [x] Android 系统自带的 ProgressBar 的各种样式
- [x] 带百分比数字的水平进度条样式
- [x] 带百分比数字的圆形进度条样式
- [ ] 彗星进度条样式
- [ ] 波浪进度条样式

## 常见问题

> 1.无法显示进度 - 必须设置「style」为「@android:style/Widget.ProgressBar.Horizontal」

```
style="@android:style/Widget.ProgressBar.Horizontal"
```

## 效果图与示例 apk

![bgaprogressbar1](https://cloud.githubusercontent.com/assets/8949716/19214303/2186d78a-8db2-11e6-913f-d50586334c14.gif)
![bgaprogressbar2](https://cloud.githubusercontent.com/assets/8949716/19214304/2190646c-8db2-11e6-870a-ddcfaff496e7.gif)

[点击下载 BGAProgressBarDemo.apk](http://fir.im/BGAProgressBar) 或扫描下面的二维码安装

![image](https://cloud.githubusercontent.com/assets/8949716/21228916/a2609da8-c31a-11e6-8c96-f99aabaab437.png)

## 使用

### 1.添加 Gradle 依赖

[![Download](https://api.bintray.com/packages/bingoogolapple/maven/bga-progressbar/images/download.svg)](https://bintray.com/bingoogolapple/maven/bga-progressbar/_latestVersion) bga-progressbar 后面的「latestVersion」指的是左边这个 Download 徽章后面的「数字」,请自行替换。请不要再来问我「latestVersion」是什么了

```groovy
dependencies {
implementation 'cn.bingoogolapple:bga-progressbar:latestVersion@aar'
}
```

### 2.在布局文件中配置 BGAProgressBar

```xml

```

## 自定义属性说明

```xml

































```

## 详细用法请查看 [Demo](https://github.com/bingoogolapple/BGAProgressBar-Android/tree/master/demo):feet:

## 关于我

| 新浪微博 | 个人主页 | 邮箱 | BGA系列开源库QQ群
| ------------ | ------------- | ------------ | ------------ |
| bingoogolapple | bingoogolapple.cn | [email protected] | ![BGA_CODE_CLUB](http://7xk9dj.com1.z0.glb.clouddn.com/BGA_CODE_CLUB.png?imageView2/2/w/200) |

## 打赏支持

如果您觉得 BGA 系列开源库帮你节省了大量的开发时间,请扫描下方的二维码随意打赏,要是能打赏个 10.24 :monkey_face:就太:thumbsup:了。您的支持将鼓励我继续创作:octocat:

如果您目前正打算购买通往墙外的梯子,可以使用我的邀请码「YFQ9Q3B」购买 [Lantern](https://github.com/getlantern/forum),双方都赠送三个月的专业版使用时间:beers:



## License

Copyright 2016 bingoogolapple

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.