Hi,
Here i want to show you how easily make your own Android ProgressBar style or how to change ProgressBar color.
It is very easy! Also below you can download source code of Android project.
Below you can see the screenShot with ProgressBar

Indeterminate ProgressBar style
To do this you need:
- Create the image for this ProgressBar in any graphical editor.
- Create animation drawable with content:
<?xml version="1.0" encoding="utf-8"?> <animated-rotate xmlns:android="http://schemas.android.com/apk/res/android" android:drawable="@drawable/image_for_rotation" android:pivotX="50%" android:pivotY="50%" />
- Select android:indeterminateDrawable for ProgressBar witget.
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center"> <ProgressBar android:indeterminateDrawable="@drawable/my_progress_indeterminate" android:layout_height="100dp" android:layout_width="100dp"/> </LinearLayout>
Enjoy! ![]()
Download source code. Here you can download Sample project with custom Android ProgressBar.





#1 by Anees on 23 September, 2011 - 06:46
Good one !!!! Helped to create a smooth custom progress bar.
#2 by bos on 10 October, 2011 - 08:32
brilliant! thanx
#3 by Igor on 10 October, 2011 - 08:38
You’re welcome, guys
#4 by Jesse on 10 January, 2012 - 01:11
Great!
#5 by Atul bhardwaj on 13 January, 2012 - 13:17
Great code
#6 by Deepthi G on 27 February, 2012 - 13:42
Great post!!
Keep up the great work!! May be you can visit my humble blog too..
Regards
Deepthi G
#7 by Ramesh on 16 April, 2012 - 12:54
Nice! Its really superb trick!
#8 by Greg on 18 April, 2012 - 11:10
great help for me. Thanks a lot!!
#9 by Vish on 18 May, 2012 - 16:45
Thanks a lot. You saved my time & it worked nicely.
#10 by raheel on 12 July, 2012 - 08:25
hi , gr8 tutorial,
i have a question, how can i increase the speed of the rotation
#11 by Rafsan on 27 July, 2012 - 21:46
How can i stop this progressBer. Is there any process to set the duration?
#12 by Igor on 28 July, 2012 - 11:44
Hello, Rafsan
The intermediate progress bar cannot be stopped. You can make it invisible. I’ll doing this task in this way.
#13 by manel on 2 August, 2012 - 20:03
help me please for develpped android
#14 by Dude on 7 August, 2012 - 03:46
nice bro
#15 by prasad on 8 August, 2012 - 17:47
how to make a transparent webview behind a gridview.
#16 by Igor on 9 August, 2012 - 00:23
Hello prasad,
I’ve posted info special for you
Hope, It help you http://www.hrupin.com/2012/08/how-to-make-a-transparent-webview-in-android
#17 by Igor on 9 August, 2012 - 00:24
Hello manel,
What help do you need?
#18 by prasad on 9 August, 2012 - 11:43
thanks bro for ur reply…..i will tell were iam stuck..i have a home page with two buttons and and weview showing google.com..when i click on one button one gridview should come…the grid view should be above the webview we should see both the web view and gridview …and if i click the same button gridview should go and webview should be seen how this transparency can be achieved plz help..iam stuck here
#19 by prasad on 9 August, 2012 - 12:15
bro can this progress bar be used while switching between webpages in application in same layout………..