Material Design Hub

Showing posts with label CircleView Android Library. Show all posts
Showing posts with label CircleView Android Library. Show all posts

Tuesday, July 28, 2015

CircleView Android Library

CircleView Android Library



CircleView Android Library

Description:-   An circle view, similar to Android's ProgressBar. Can be used in 'value mode' or 'spinning mode'.

Min SDK: 14 (Android 4.0–4.0.2 Ice Cream Sandwich).

Contributors:  https://github.com/jakob-grabner



How To Use CircleView Android Library:  

- Download the CircleProgressView.aar into your libs folder.
- Add libs folder as a maven repo in your build.gradle

repositories {
    mavenCentral()
    flatDir {
        dirs 'libs' //this way we can find the .aar file in libs folder
    }
}

- add dependency
compile 'at.grabner.circleprogress:CircleProgressView:1.0@aar'


 Add CircleView to your layout:

<at.grabner.circleprogress.CircleProgressView
   android:layout_width="277dp"
   android:layout_height="wrap_content"
   android:id="@+id/circleView"
   CircleProgressView:rimWidth="35dp"
   CircleProgressView:barWidth="35dp"
   CircleProgressView:contourSize="0dp"
   CircleProgressView:unitColor="@color/primary_color"/>


 Add CircleView in your JAVA code:

mCircleView = (CircleProgressView) findViewById(R.id.circleView);
        mCircleView.setMaxValue(100);
        mCircleView.setUnit("%");
        mCircleView.setValue(0);


Please Join our Facebook  Group and Page

Facebook group: Android controls

Facebook page: Android Controls

Subscribe YouTube channel: Click here

SUBSCRIBE TO OUR EMAIL NEWSLETTER & RECEIVE UPDATES RIGHT IN YOUR INBOX.   Click here


If You Have Any question or Suggestions Please Feel Free to Comments .