Karamunting.Android.TomerGoldst.ProgressCircle

Progress Circle View for Andoid


Keywords
android, android-library, circle-progress, progress, droid, mono, mono.droid, xamarin, xamarin-android, xamarin.android, andoid, customview, java, progress-bar, progress-circle
Install
Install-Package Karamunting.Android.TomerGoldst.ProgressCircle -Version 1.0.1

Documentation

progress circle

Progress Circle View for Andoid

##Instruction

Add a dependency to your app build.gradle

dependencies {
    compile 'com.tomergoldst.android:progress-circle:1.0.0'   
}

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.