Present your progress bars in arc mode with information and total control.
| View size, CB controls | Typeface, animation | Draw width, offset, gradient | Angle, orientation | Shadow |
|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
U can check the sample app here.
You can download a .jar from GitHub's releases page.
Or use Gradle jCenter:
dependencies {
repositories {
mavenCentral()
maven {
url 'http://dl.bintray.com/gigamole/maven/'
}
}
compile 'com.github.gigamole.arcprogressstackview:library:+'
}
Or Gradle Maven Central:
compile 'com.github.gigamole.arcprogressstackview:library:1.0.0'
Or Maven:
<dependency>
<groupId>com.github.gigamole.arcprogressstackview</groupId>
<artifactId>library</artifactId>
<version>1.0.0</version>
<type>aar</type>
</dependency>
ArcProgressStackView requires a minimum sdk version of 8, but if you want animation and shadow support it requires a minimum sdk version of 11.
You can set such parameters as:
-
colors:
allows you to create shadow with transparent etc.
-
angle:
allows you to set the angle of tint.
ArcProgressStackView must have child. Only one child.
The angle can only be positive and be in range from 0 to 360.
Check out in code init:
final ArcProgressStackView tintLayout = (ArcProgressStackView) findViewById(R.id.tint_layout);
tintLayout.setAngle(145);
And XML init:
<com.gigamole.tintlayout.lib.ArcProgressStackView
android:id="@+id/tint_layout"
android:layout_width="300dp"
android:layout_height="300dp"
android:layout_gravity="center"
android:background="@drawable/circle"
libs:colors="@array/tint_layout_colors">
<com.gigamole.tintlayout.AgencyTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:text="@string/tint_layout_title"
android:textColor="@color/white"
android:textSize="50sp"
libs:agencyFont="agency_bold" />
</com.gigamole.tintlayout.lib.ArcProgressStackView>
If you want to look at circular tint animation just remove comment block in sample from XML and MainActivity.
To report a specific problem or feature request, open a new issue on Github.
Apache 2.0. See LICENSE file for details.
Here, here, [here] (https://www.pinterest.com/pin/531424824760607320/), also [here] (https://www.pinterest.com/pin/149111437639569450/) and [here] (https://www.pinterest.com/pin/438538082442328565/)
Basil Miller - @gigamole




