Charles Li
Charles Li

Reputation: 1925

Static circular progress indicator

I have a vocab building app with different vocab categories displayed in a list view. I want to have a circular progress indicator for each category that shows how familiar the user is with the vocab stored in it. I know that Android has a built-in Progress Bar. The design is what I'm looking for, however, it appears that the progress bar is running continuously by default. Whereas in my case, I just want it to be static and updated only when the activity that displayed the category items are (re)opened. So to summarize again, the main difference is that the progress bar I'm looking for isn't dependent on a process that is currently running but instead from an SQLite database where I stored information on how familiar the user is with each vocab. I have searched online and I wasn't able to solve this problem since progress bar is usually implied to be dependent on a running process.

Thank you so much for any help in advance!

Upvotes: 2

Views: 1721

Answers (1)

Nerdy Bunz
Nerdy Bunz

Reputation: 7437

The Android ProgressBar is designed to show the progress of a process, yes, you are correct. They can be either determinate (they go from beginning to end... like a BAR), or indeterminate (they go round and round... like a CIRCLE). Circular progressbars are indeterminate and therefore do not communicate progress per-se, only that there is something in the process of "progressing" and not finished yet.

You say you want to use this widget to communicate to the user what their PERSONAL progress is in a given area.

If you insist on using the ProgressBar widget, then you would need to use a determinate one (horizontal)...

But you do not need the progress bar widget... just make your own indicator or some kind... like

1) Using views/animations, like create a view space and tell it to fill 60%, 20%, whatever...

2) make your own set of bitmap files (say, 5 of them representing 0%, 25%, 50%, 75%, 100% on a circular progress bar)... and swap them out depending on the users progress.

Upvotes: 2

Related Questions