Android Circular Progress Bar With Percentage Programmatically

Welcome all,
When developing Android apps, you may need to show android circular progress bar to indicate some process.

Today we are going to develop a android circular progress bar with the percentage of completed process shown at the center of the circle.

Take a look at the output first, and then we will show how to develop the android circular progress bar.

Try Our App

Download DemoNuts app to learn anytime, anywhere: Demonuts Android App

How to get maximum benefit from android circular progress bar tutorial

Download Source Code for android circular progress bar

Try Our App

Download DemoNuts app to learn anytime, anywhere: Click to get Demonuts App

Or search “demonuts” in play store from android mobile device.

Kotlin Version

Android Circular Progress Bar example is also available in the Kotlin version.

Visit it : Android Circular Progress Bar In Kotlin

Creating Android circular progress bar

If you are using adblocker, then you will not be able to show our site smoothly. For example, you find step 6 after step 1 or similar to this. So please disable adblocker to fully utilize all resources of DemoNuts

Step 1. Create a new project in the Android Studio.

Step 2. Creating drawable resource file

Create one drawable resource file named circular.xml (drawable resource file means in android studio project’s file structure, you will find a folder named drawable inside a res folder as shown in below image.)


Put files in Drawable directory

Step 3. Coding circular.xml

Copy and paste following code into circular.xml

Step 4. Updating activity_main.xml

Copy and paste following in activity_main.xml

In above code, we have used a white circular image which you can download here. Put this image in the drawable folder.

Step 5. Describing Handler

We will use Handler and Thread to accomplish our goal.

Above code will create a process for the specific amount of time, which can be decided by you.

Step 6. Updating class

Final code for

Getting good Android example when searching in Google

Click to get Important Google searching tips

That’s all for android circular progress bar. Thank you for visiting and keep sharing resources of demonuts to other learners.

Cheers and happy coding!

  1. online education degrees
    • Hardik Parsania
  2. education college
    • Hardik Parsania
  3. online education
  4. education college
    • Hardik Parsania
  5. Ramesh
  6. Ramesh
  7. Hardik Parsania
  8. wife creampie
    • Hardik Parsania
  9. corburterilio
  10. Alex
  11. Lucian
    • Hardik Parsania
  12. roman
  13. Mahesh
  14. anmihovil
  15. Jack
  16. Arun
    • Hardik Parsania
  17. Arin

Leave a Reply

Your email address will not be published. Required fields are marked *