Material Design Hub

Friday, December 12, 2014

Android Progressbar

11:59 AM

Android Custom Progressbar(materialish-progress)



Android Progressbar



Android custom Progressbar


Description:-
A material style progress wheel compatible with 2.3


I needed to keep a consistent (or as close as possible) look in an app across all Android Versions. The progress wheel is quite cool in Lollipop, and pretty horrible on Gingerbread.

Watch the demo


Download library and sample code

How To Use:-

Step 1: Create a new Android Project

Step 2: Import  Library to your Android Application Project
     1: File->New->Other
     2: Select Android Project
     3: Select "Create Project from existing source"
     4: Click "Browse...
     5: Finish (Now action bar project in your workspace)
     6: Right-click on your project -> Properties
     7: In Android->Library section click Add
     8: select recently added project -> Ok
     9: that's it!


Now You can create your own progress wheel in xml like this
<com.pnikosis.materialishprogress.ProgressWheel
        android:id="@+id/progress_wheel"
        android:layout_width="80dp"
        android:layout_height="80dp"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        wheel:barColor="#5588FF" 
wheel:progressIndeterminate="true" />.

Or in code:
ProgressWheel wheel = new ProgressWheel(context);
wheel.setBarColor(Color.BLUE);
Reference: https://github.com/pnikosis/materialish-progress 
Developed By:  pnikosis

Please Join our Facebook  Group and Page


Facebook group: Android controls

Facebook page: Android Controls


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 .

6 Comments

  1. There is no 'show()' method as like other one.Please,can anyone help me to show dialog in my app.
    here is my code,
    ProgressWheel wheel= new ProgressWheel(mContext);
    wheel.setBarColor(Color.BLUE);
    wheel.setCircleRadius(45);
    wheel.spin();

    //what to do next,to make it visible

    ReplyDelete
    Replies
    1. use library in your own project and use ProgressWheel like a view

      Delete
  2. use ProgressWheel like a view // set visible or invisble

    ReplyDelete