PolygonProgressView

Additional

Language
Kotlin
Version
0.1.0 (Sep 17, 2019)
Created
Jun 27, 2016
Updated
Jun 22, 2021 (Retired)
Owner
TacticalTwerking
Contributor
TacticalTwerking
1
Activity
Badge
Generate
Download
Source code

Advertisement

AbilityChartView

A custom view that display multiple attributes/abilities by a polygon shape

Review

Gradle dependency

Add jcenter() to your repositories

And implementation 'io.github.TacticalTwerking:AbilityChartView:0.1.1' to your dependencies

Simply Usage

1.Prepering your values

    String [] labels = new String[]{"label0","label1","label2"...};
    float [] values = new float[]{1,.3f,1...};

2.Initializing values

    AbilityChartView.initial(14,values,labels);

3.Animate it!

    AbilityChartView.animateProgress();

Stylize Your View

<io.github.tacticaltwerking.abilitychartview.AbilityChartView
        android:id="@+id/ppv"
        app:acv_polygon_color = "@color/defaultPolygonColor"
        app:acv_circle_color = "@color/defaultCircleColor"
        app:acv_grid_color = "@color/defaultGridColor"
        app:acv_show_grid = "true"
        app:acv_grid_width = "1px"
        app:acv_circle_width = "2px"
        app:acv_label_txt_size = "12sp"
        app:acv_label_txt_color = "@color/colorPrimary"
        app:acv_center_image="@mipmap/ic_launcher"
        app:acv_minimal_value_percentage="40%p"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />