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

1597 questions
32
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
  • 483
  • 1
  • 4
  • 14
32
votes
7 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 :
31
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
  • 15,621
  • 22
  • 103
  • 174
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
  • 5,773
  • 4
  • 27
  • 46
28
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,467
  • 1
  • 20
  • 37
26
votes
3 answers
25
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
  • 943
  • 3
  • 12
  • 25
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
  • 21,054
  • 8
  • 74
  • 127
23
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
  • 106,412
  • 122
  • 641
  • 1,128
23
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
  • 996
  • 2
  • 15
  • 29
23
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,175
  • 7
  • 77
  • 170
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) { …
21
votes
3 answers

how to use progressbar when loading image in picasso?

I want onStart() method to load image from server using picasso and I want to show a progress bar until the photos are fully downloaded Here is my code: @Override protected void onStart() { // TODO Auto-generated method stub …
androidAhmed
  • 211
  • 1
  • 2
  • 5
20
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,393
  • 3
  • 15
  • 24
20
votes
2 answers

About Android Progress Dialog. Avoid?

I was reading about Dialogs in Android site and I came across a section that saying "Avoid ProgressDialog". Here is the link: http://developer.android.com/guide/topics/ui/dialogs.html does that means they recommend not to use it? I really need a…