expandable-circle-view

A circular progress indicator that expands or shrinks the inner circle to the given progress.

License

License

GroupId

GroupId

com.nex3z
ArtifactId

ArtifactId

expandable-circle-view
Last Version

Last Version

0.2.3
Release Date

Release Date

Type

Type

aar
Description

Description

expandable-circle-view
A circular progress indicator that expands or shrinks the inner circle to the given progress.
Project URL

Project URL

https://github.com/nex3z/ExpandableCircleView
Source Code Management

Source Code Management

https://github.com/nex3z/ExpandableCircleView

Download expandable-circle-view

How to add to project

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

Dependencies

runtime (1)

Group / Artifact Type Version
androidx.appcompat » appcompat jar 1.2.0

Project Modules

There are no modules declared in this project.

ExpandableCircleView

API

A circular progress indicator that expands or shrinks the inner circle to the given progress.

expand

Gradle

dependencies {
    compile 'com.nex3z:expandable-circle-view:0.1.2'
}

Usage

<com.nex3z.expandablecircleview.ExpandableCircleView
    android:id="@+id/circle"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:innerColor="@color/colorPrimary"
    app:showProgressText="true"
    app:progressTextColor="@color/colorAccent"
    app:progressTextSize="32sp"/>

Use setProgress(int progress) or setProgress(int progress, boolean animate) to expand the inner circle according to the specified progress.

mCircle = (ExpandableCircleView) findViewById(R.id.circle);
mCircle.setProgress(50, true);

Customization

The ExpandableCircleView can be customized with the following attributes.

Attribute Format Description
app:innerColor color The color of inner circle.
app:outerColor color The color of outer circle.
app:max integer The upper limit of this progress bar's range.
app:showProgressText boolean Whether the progress text is shown in the center of the circle. Default is false.
app:progressTextSize dimension The size of progress text.
app:progressTextColor color The color of progress text.
app:progressTextSuffix string The suffix string to be appended to the progress text.
app:expandAnimationDuration integer The animation duration in millisecond for the inner circle to expand.

Versions

Version
0.2.3
0.2.2
0.2.1