Questions tagged [android-progressbar]

Android's ProgressBar widget displays visual work-in-progress indication to the user. A determinate progress bar displays how far the operation has progressed. An indeterminate progress bar just displays that work is being done.

Android's ProgressBar widget displays visual work-in-progress indication to the user. A determinate progress bar displays how far the operation has progressed. An indeterminate progress bar just displays that work is being done.

Android ProgressBar is often used in a Dialog using ProgressDialog.

ProgressBar has following different styles

1648 questions
15
votes
3 answers

How to make a Radial/Circular ProgressBar Not Spin

I have a horizontal ProgressBar that works great.
TheLettuceMaster
  • 15,594
  • 48
  • 153
  • 259
14
votes
5 answers

How to make round corners for a ring shape in Android drawable

I have a custom progress bar that looks like this: Here's the .xml code I've used to create it: background_drawable.xml
14
votes
1 answer

ProgressBar Circle shows no progress on android L (API 21)

I have a circular ProgressBar to count down time. It workes perfectly on kitkat and before, but on android L it always shows a full circle no matter what progress I set. Image layout.xml
Jonathan S
  • 491
  • 1
  • 5
  • 11
14
votes
6 answers

Progress bar rounded on both sides in android

I am trying to create a custom progress bar in android. I have used the following xml file for it (progress_bar_horizontal.xml):
14
votes
4 answers

Android: how to disable controls during progress bar is active

I show my infinte progress bar in the action bar "as usual": requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); ... setProgressBarIndeterminateVisibility(true); ... setProgressBarIndeterminateVisibility(false); and the real work is done…
cor
  • 141
  • 1
  • 1
  • 4
12
votes
2 answers

how to show progress bar status by percentage

I am using progress dialog for android 2.3.3. Progress dialog's status is showing with the format as "60% 60/100" but I want to display only percentage not "60/100". How can I do it? please help.
Dhanesh
  • 781
  • 2
  • 9
  • 16
12
votes
3 answers

resource android:attr/android:progressBarStyle not found

I've got this error when I tried to build my project after I updated Android Studio to the lastest version. I am getting below…
12
votes
6 answers

How to hide progressbar in Android?

I added a progressbar to my app but I want to hide it after some doing some action, I used hide(), dismiss() and cancel()... but none of them work? How can I hide the progressbar?
Adham
  • 63,550
  • 98
  • 229
  • 344
12
votes
8 answers

How to add progress bar over dialog

Whenever I want to show progress bar into my app, I call this method and this method adds ProgressBar into my layout. Problem : I want to show this progress bar over Dialog, but Dialog is always shown above. What can be done for this…
Harish Gyanani
  • 1,366
  • 2
  • 22
  • 43
12
votes
1 answer

Make progress bar inside button

The problem I would like to make a progress bar like in this image: The desired behavior is: When user clicks the button, the dark gray progress bar appears and starts to get incremented at a constant pace. I want to be able to determine how long…
FabioR
  • 696
  • 9
  • 18
12
votes
6 answers

Indeterminate ProgressBar not showing during AsyncTask operation

I have a GoogleTranslate.java file that has a class, GoogleTranslate, that extends AsyncTask. The purpose of this task is to perform Google translations. I have another class, MyVocab, that allows the user to input a word to translate in an alert…
Charles Li
  • 1,835
  • 3
  • 24
  • 40
12
votes
5 answers

How to automatically show Progress Bar on each retrofit API call?

How to achieve showing a progress bar on each Retrofit 2.0 API call without having to make a progress bar in each activity, showing it and dismissing. Progress bar should show whenever an API is hit and it should dismiss when we get a response on…
Shubham A.
  • 2,446
  • 4
  • 36
  • 68
12
votes
3 answers

Changing translucent background color of progressbar android

I want to change background color of the progressbar having black translucent background with opacity less than 50%. I searched a lot about this but not able to find solution. I don't know whether i'm right or not but it has some thing to do with…
11
votes
4 answers

implement a spinning activity indicator similar to iOS in Android

I am trying to implement the spinning activity similar to the the one I have placed below in Android. I believe I should use the ProgressDialog. My issue arises from how to actually manipulate the ProgressDialog to appear like the activity…
user788511
  • 1,726
  • 2
  • 30
  • 52
11
votes
1 answer

How to use horizontal "material progressindicator" in android?

I've used "android.material.progressindicator" for the purpose of showing progress in horizontal view but I can't hear my XML