A simple lib to create a ring-like progress view with corner edges

Overview

ProgressRingView

Android Arsenal Maven Central

alt tag

Installation

Gradle:

dependencies {
    compile 'com.github.flepsik:progress-ring-view:1.2.1'
}

Maven:

<dependency>
  <groupId>com.github.flepsik</groupId>
  <artifactId>progress-ring-view</artifactId>
  <version>1.2.1</version>
  <type>pom</type>
</dependency>

Usage

There're a few attributes you can set:

ProgressRingView progress = (ProgressRingView) findViewById(R.id.first);
progress.cornerEdges(false);
progress.setProgress(.5f); //in range 0f..1f
progress.setAnimated(false);
progress.setRingWidth(ProgressRingView.DEFAULT_RING_WIDTH);
progress.setAnimationDuration(ProgressRingView.ANIMATION_DURATION);
progress.setBackgroundColor(Color.parseColor("#F29F8E"));
progress.fillInnerProgress(true);
progress.setProgressInnerFillColor(Color.parseColor("#F76156"));
progress.setProgressColor(Color.RED);
progress.setBackgroundProgressColor(Color.LTGRAY);

or via xml

<flepsik.github.com.progress_ring.ProgressRingView
        android:id="@+id/first"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:background_progress_color="#e4e7d3"
        app:progress_color="#07be7a"
        app:progress=".5" // in range 0f..1f
        app:ring_width="3dp"
        app:animated="false" 
        app:animation_duration="500"
        app:background_color="#7FFFAA"
        app:corner_edges="true"
        app:progress_inner_fill="false"
        app:progress_inner_fill_color="07be7a"/>

Contributing

Create an issue

or

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

Copyright 2017 Bogdanov Philipp

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.
You might also like...
Progress Button is a android library for hanling different types state like active, finished, enabled, disabled and reset with a single line of code.
Progress Button is a android library for hanling different types state like active, finished, enabled, disabled and reset with a single line of code.

Progress Button is a android library for hanling different types state like active, finished, enabled, disabled and reset with a single line of code.

An instagram-like segmented progress bar
An instagram-like segmented progress bar

An instagram-like segmented progress bar

This lib can  be used for viewpager infinite loop with indicator easily.
This lib can be used for viewpager infinite loop with indicator easily.

InfiniteIndicator This project is inspired by the android-auto-scroll-view-pager of Trinea. Use the salvage lib implement view recycle adapter.It cont

Some beautiful android loading drawable, can be combined with any view as the LoadingView or the ProgressBar. Besides, some Drawable can customize the loading progress too.
Some beautiful android loading drawable, can be combined with any view as the LoadingView or the ProgressBar. Besides, some Drawable can customize the loading progress too.

LoadingDrawable: Android cool animation collection 前言 CircleRotate源码解析 Fish源码解析 LoadingDrawable is some android animations implement of drawable: a li

A wave view of android,can be used as progress bar.
A wave view of android,can be used as progress bar.

WaveView ![Gitter](https://badges.gitter.im/Join Chat.svg) A wave view of android,can be used as progress bar. Screenshot APK demo.apk What can be use

A circular android ProgressBar library which extends View,  and the usage same as ProgressBar,  It has solid,line and solid_line three styles. Besides, progress value can be freely customized.
A circular android ProgressBar library which extends View, and the usage same as ProgressBar, It has solid,line and solid_line three styles. Besides, progress value can be freely customized.

CircleProgressBar 中文版文档 The CircleProgressBar extends View, It has both solid and line two styles. Besides, progress value can be freely customized. I

Yet another android custom progress view for your music player
Yet another android custom progress view for your music player

MaskProgressView Yet another android custom progress view for your music player Demo Youtube Video Link Usage co.mobiwise.library.MaskProgressView

a progress view used to grade mobiles phone
a progress view used to grade mobiles phone

GradeProgressView a progress view used to grade mobiles phone #System Requirement Android API 11+, Because of the use of ValueAnimation, if you want u

A circle progress animation view on Android
A circle progress animation view on Android

CircleProgress A Circle Progress View with a rotate animation. Just make for fun. Hope you enjoy it. Quick Look Usage me.fichardu.circleprogress.Circ

Comments
  • Don't cap ends of a zero-length progress bar

    Don't cap ends of a zero-length progress bar

    If the progress is set to zero but corner edges is enabled, the caps will be drawn, resulting in a progress bar that appears to be > 0.

    Before & after: before_after

    opened by rschlaikjer 1
  • No inner_progress_color

    No inner_progress_color

    Hi, thank you for the nice progress ring indicator. I would like to apply this into my app. But unfortunately, I just copy and paste the XML example into my layout and build it, I got the error below:

    Error:(11) No resource identifier found for attribute 'inner_progress_color' in package 'com.chubbycatstudio.smarttimeattendance'

    opened by XtheWiz 1
Releases(1.2.1)
Owner
null
[Android] Round Corner Progress Bar Library for Android

RoundCornerProgressBar Round corner is cool. Let's make your progress bar to round corner Colorful progress bar with round corner on progress which yo

Akexorcist 2.3k Dec 31, 2022
[Android] Round Corner Progress Bar Library for Android

RoundCornerProgressBar Round corner is cool. Let's make your progress bar to round corner Colorful progress bar with round corner on progress which yo

Akexorcist 2.3k Jan 7, 2023
Android loading or progress dialog widget library, provide efficient way to implement iOS like loading dialog and progress wheel

ACProgressLite English Version / 中文版本 An Android loading widget library. Lite and easy to use, strong customizability. Can be used to implement 'iOS'

Cloudist Technology Co., Ltd. 234 Nov 24, 2022
Simple Progress View that you can compare things, like statistics of a Football match

Simple Progress View that you can compare things, like statistics of a Football match

Kostas Antoniou 29 Jun 8, 2022
Android fillable progress view working with SVG paths. This is a nice option too if you want to create an interesting branding logo for your app. Based on the iOS project: https://github.com/poolqf/FillableLoaders

Android FillableLoaders Android Open Source library providing an interesting fillable progress view working with SVG paths. This is a nice option too

Jorge Castillo 2k Jan 1, 2023
MusicBar 2.1 0.0 Java view visualize progress bar for sound file like sound cloud

MusicBar Setup dependencies { implementation 'com.oze.music:MusicBar:1.0.5' } Usage Function Description setAnimationChangeListener(OnMusicBarAn

emad 74 Aug 26, 2022
A progress wheel for android, intended for use instead of the standard progress bar.

Deprecation warning This project is no-longer maintained, and has not been maintained for a few years now. If you're looking for an alternative librar

Todd Davies 2.7k Dec 29, 2022
:barber: [Android Library] Stacked dual progress indicator progress-bar

StackedHorizontalProgressBar Specs Featured in Show some ❤️ Android library with ability to show two progress indicators in one horizontal progress ba

Nishant Srivastava 98 Nov 11, 2022
Create & Show progress, data or error views, the easy way!

State Views for Android (BETA version) Create & Show progress, data or error views, the easy way! StateViews is based on ViewSwitcher mechanism and al

Mehdi Sakout 376 Dec 21, 2022
Android library to display progress like google does in some of his services.

GoogleProgressBar This library is not maintained anymore and there will be no further releases Android library to display different kind of google rel

JPARDOGO 1.3k Dec 27, 2022