Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/HotBitmapGG/RingProgressBar
A material design circle the progress bar.
https://github.com/HotBitmapGG/RingProgressBar
material progressbar view
Last synced: 3 months ago
JSON representation
A material design circle the progress bar.
- Host: GitHub
- URL: https://github.com/HotBitmapGG/RingProgressBar
- Owner: HotBitmapGG
- License: apache-2.0
- Created: 2016-07-13T12:25:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-27T00:57:20.000Z (almost 7 years ago)
- Last Synced: 2024-04-28T22:31:52.058Z (6 months ago)
- Topics: material, progressbar, view
- Language: Java
- Homepage:
- Size: 1.5 MB
- Stars: 782
- Watchers: 20
- Forks: 150
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-github-android-ui - RingProgressBar - MD风格的环形进度条 (进度条)
README
# RingProgressBar
[![](https://jitpack.io/v/HotBitmapGG/RingProgressBar.svg)](https://jitpack.io/#HotBitmapGG/RingProgressBar) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-RingProgressBar-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/4326) [![Wercker](https://img.shields.io/wercker/ci/wercker/docs.svg?maxAge=2592000?style=plastic)]() [![Hex.pm](https://img.shields.io/hexpm/l/plug.svg?maxAge=2592000?style=plastic)]()
A material design circle the progress bar,You can download it in image loading and file upload when used.
## Screenshots
## Import
```java
Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}Step 2. Add the dependency
dependencies {
compile 'com.github.HotBitmapGG:RingProgressBar:V1.2.3'
}```
## Maven
```java
Step 1.
jitpack.io
https://jitpack.io
Step 2. Add the dependency
com.github.HotBitmapGG
RingProgressBar
V1.2.2
```
## Directions
* custom properties
name | format | instructions
-----|------|----
ringColor | color | Color ring
ringProgressColor | color | Progress of color
ringWidth | dimension | Ring width of progress
textColor | color | Text color
textSize | dimension | Text size
max | integer | Max progress
textIsShow | boolean | Is display text
style | STROKE& FILL | Circle progress style## Usage
* 1.In the XML
```java
```
* 2.In the code
```java
mRingProgressBar = (RingProgressBar) findViewById(R.id.progress_bar);
// Set the progress bar's progress
mRingProgressBar.setProgress(progress);
mRingProgressBar.setOnProgressListener(new RingProgressBar.OnProgressListener()
{@Override
public void progressToComplete()
{
// Progress reaches the maximum callback default Max value is 100
Toast.makeText(MainActivity.this, "complete", Toast.LENGTH_SHORT).show();
}
});```
## About me
[![Wercker](https://img.shields.io/badge/weibo-HotBitmapGG-blue.svg)](http://weibo.com/3223089177/profile?topnav=1&wvr=6&is_all=1)
An android developer in Wuhan.
If you want to make friends with me, You can focus on my weibo.
## License
Copyright 2017 HotBitmapGG
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.