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
36
votes
6 answers

Android 5.0 - ProgressBar cannot be displayed over a Button

I think the title is pretty explicit about my problem... So here is my layout :
35
votes
3 answers

How can I display a holo-themed activity circle?

I've tried to show an indeterminate activity circle like this one: Here's the layout code:
Mridang Agarwalla
  • 43,201
  • 71
  • 221
  • 382
33
votes
2 answers

Android DialogFragment progress bar

I've searched everywhere and I can't find a solution to this problem. Basically I have a login screen and I'm trying to get a progress spinner to show up while it's logging in to the server (via a thread), and then dismiss it after the login is…
Jon
  • 493
  • 1
  • 4
  • 14
33
votes
5 answers

How to make ProgressBar stop spinning?

When I add horizontal ProgressBar it behaves as expected -- I set the progress value and it shows it. However when I add ProgressBar (circular) it spins. And that's it. In such form it is more "please wait" indicator, that any progress bar, because…
greenoldman
  • 16,895
  • 26
  • 119
  • 185
30
votes
2 answers

How to create 'Horizontal style' progress bar programmatically in Android?

I am creating a ProgressBar in my app programmatically it is of SPIN style by default however I want it in HORIZONTAL style. I don't see any method/constant to achieve this. And I don't want to use ProgressDialog as it'd be inconsistent with my App…
iuq
  • 1,487
  • 1
  • 20
  • 42
30
votes
1 answer

Android - what does requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS) do?

Pretty much in in the title. Have seen this around and after a bit of searching can't seem to find out what it actually does or what indeterminate progress is. requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS) It's used for example by…
mgibson
  • 6,103
  • 4
  • 34
  • 49
27
votes
3 answers
27
votes
2 answers

Create a progressDialog only with the spinner (in the middle)

I need to create a progressDialog only with the spinner and without the box (or at least with a smaller box and the image in the middle). I don't want to add a spinner to my .xml (layout file) to load the spinner. Is there any way to accomplish…
Filnik
  • 1,023
  • 3
  • 13
  • 26
26
votes
4 answers

Circular Progress Indicator ignores width/height attributes and doesn't scale

I need to fit 4 circular progress bars horizontally, like this: so I decided to use new material component Circular Progress Indicator (https://material.io/components/progress-indicators/android). I spread chain these 4 progress bar in constrait…
25
votes
2 answers

How to change Progress bar image in android

I would like to change the progress bar to a custom drawable. How do I change the image of the progress bar?
selva
  • 1,503
  • 3
  • 17
  • 24
25
votes
6 answers

How to create a repeating animated moving gradient drawable, like an indeterminate progress?

Background Android has a standard ProgressBar with a special animation when being indeterminate . There are also plenty of libraries of so many kinds of progress views that are available (here). The problem In all that I've searched, I can't find a…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
25
votes
6 answers

Rounded progress within rounded progress bar

I'm trying to create a custom progress bar in an app we're working on, and the last piece I need is the progress indicator itself. Instead, I want to have that bar be rounded just like the left- and right-hand edges of the progress bar itself, like…
TheIcemanCometh
  • 1,055
  • 2
  • 17
  • 31
24
votes
3 answers

Android: indeterminate horizontal progress (dialog) bar

What's the best way to create an indeterminate, horizontal progress bar? If I do this, dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); dialog.setIndeterminate(true); I still get the progress numbers (percent, etc) along the…
Jeffrey Blattman
  • 22,176
  • 9
  • 79
  • 134
22
votes
2 answers

setSupportProgressBarIndeterminateVisibility raising java.lang.NullPointerException when used with Android 5.0 SDK (API 21)

My activity class extends android.support.v7.app.ActionBarActivity. I am requesting window feature and calling setSupportProgressBarIndeterminateVisibility() in the onCreate() method as follows: protected void onCreate(Bundle savedInstanceState) { …
22
votes
6 answers

Android : Semi Circle Progress Bar

I want semi circle progress bar in background of image. just like below image. i have tried to draw using canvas but can't get success. i have also tired some custom progress bar library but result is same. any suggestions. looking for one time…
Dhaval Parmar
  • 18,812
  • 8
  • 82
  • 177