项目作者: jakob-grabner

项目描述 :
Animated circular progress view for Android
高级语言: Java
项目地址: git://github.com/jakob-grabner/Circle-Progress-View.git
创建时间: 2015-02-13T07:42:49Z
项目社区:https://github.com/jakob-grabner/Circle-Progress-View

开源协议:MIT License

下载


CircleView

An animated circle view. Can be used in ‘value mode’ or ‘spinning mode’. Nice transitions between spinning and value. Can be used as a loading indicator and to show progress or values in a circular manner. In seek mode, it can also be used to set a value.

MainImage

Try it out here.

Fully animated:

animation demo

  • Animated set value.
  • Spinning mode.
  • Transition from spinning mode to value mode.

Fully customizable:

CircleParts

All parts come with a customizable color and thickness. Set the size of a part to 0 to hide it.

Text sizes

Per default, the texts size is automatically calculated to fit in the circle.

Colors

The spin bar color can consist of a single color or a gradient from up to 4 colors.

Gradient colors.

Block Mode

  • Via XML
    1. CircleProgressView:cpv_blockCount="18"
    2. CircleProgressView:cpv_blockScale="0.9"

Seek Mode

Set value on touch input. Enable it:

  • Via Code:
    1. circleview.setSeekModeEnabled(true);
  • Via XML:
    1. CircleProgressView:cpv_seekMode="true"

For more examples take a look at the example app.

Add it to your project:

Get the latest release from https://jitpack.io/#jakob-grabner/Circle-Progress-View

  1. allprojects {
  2. repositories {
  3. // ...
  4. maven { url "https://jitpack.io" }
  5. }
  6. }
  7. dependencies {
  8. // ...
  9. implementation 'com.github.jakob-grabner:Circle-Progress-View:1.4'
  10. }

JavaDoc

Get it here.