ProgressCircle

Progress Circle View for Android

License

License

GroupId

GroupId

com.tomergoldst.android
ArtifactId

ArtifactId

progress-circle
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

aar
Description

Description

ProgressCircle
Progress Circle View for Android
Project URL

Project URL

https://github.com/tomergoldst/progress_circle
Source Code Management

Source Code Management

https://github.com/tomergoldst/progress_circle

Download progress-circle

How to add to project

<!-- https://jarcasting.com/artifacts/com.tomergoldst.android/progress-circle/ -->
<dependency>
    <groupId>com.tomergoldst.android</groupId>
    <artifactId>progress-circle</artifactId>
    <version>1.0.2</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.tomergoldst.android/progress-circle/
implementation 'com.tomergoldst.android:progress-circle:1.0.2'
// https://jarcasting.com/artifacts/com.tomergoldst.android/progress-circle/
implementation ("com.tomergoldst.android:progress-circle:1.0.2")
'com.tomergoldst.android:progress-circle:aar:1.0.2'
<dependency org="com.tomergoldst.android" name="progress-circle" rev="1.0.2">
  <artifact name="progress-circle" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.tomergoldst.android', module='progress-circle', version='1.0.2')
)
libraryDependencies += "com.tomergoldst.android" % "progress-circle" % "1.0.2"
[com.tomergoldst.android/progress-circle "1.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

progress circle

Progress Circle View for Andoid

Instructions

Add a dependency to your app build.gradle

dependencies {
    implementation 'com.tomergoldst.android:progress-circle:1.0.2'
}

Add 'ProgressCircle' view to your layout

<com.tomergoldst.progress_circle.ProgressCircle
        android:id="@+id/circle_progress"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:progressColor="?attr/colorPrimary"
        app:textColor="?attr/colorPrimary"
        app:outlineWidth="16dp"
        app:ProgressWidth="10dp"/>

Adjust attributes to fit your needs, below is the list of attributes available

<declare-styleable name="ProgressCircle">
        <attr name="textColor" />
        <attr name="progressColor" />
        <attr name="ProgressWidth" />
        <attr name="outlineColor" />
        <attr name="outlineWidth" />
        <attr name="maxProgressValue" />
        <attr name="maxAnimationDuration" />
        <attr name="minAnimationDuration" />
    </declare-styleable>

Set progress from code

mCircleProgress = (ProgressCircle) findViewById(R.id.circle_progress);
mCircleProgress.setProgress(90);

See the demo app for more information

License

Copyright 2016 Tomer Goldstein

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.

Versions

Version
1.0.2