Questions tagged [progress-bar]

A progress bar is a component in a graphical user interface used to convey the progress of a task, such as a download or file transfer.

A progress bar is a component in a graphical user interface used to convey the progress of a task, such as a download or file transfer. The graphic is often displayed as a bar which illustrates the task percentage complete. Descriptive textual information may accompany the bar.

enter image description here

Typically, determinate progress bars use a linear function, such that the advancement of a progress bar is directly proportional to the amount of work that has been completed. However, varying disk, memory, processor, bandwidth and other factors complicate this estimate. Consequently, progress bars often exhibit non-linear behaviors, such as acceleration, deceleration, and pauses. These behaviors, coupled with humans' non-linear perception of time passing, produces a variable perception of how long progress bars take to complete. However, this also means progress bars can be designed to "feel" faster. Finally, the graphical design of progress bars has also been shown to influence humans' perception of duration

Indeterminate progress bars, on the other hand, provide a simple animation (often in the for of a spinning ring or an horglass).
These are meant to indicate that an operation is currently running, but it's not known when it will be over.

They may look similar to this:

enter image description here

7560 questions
103
votes
18 answers

Progress Bar with HTML and CSS

I want to create a progress bar like in the below image: I have no idea about creating this. Should I use HTML5 techniques? Would you please give me some help about creating this progress bar?
Shahin
  • 12,543
  • 39
  • 127
  • 205
102
votes
11 answers

Double Progress Bar in Python

Is there a way to create a double progress bar in Python? I want to run two loops inside each other. For each loop I want to have a progress bar. My program looks like: import time for i1 in range(5): for i2 in range(300): # do…
Thomas
  • 1,959
  • 2
  • 15
  • 16
98
votes
7 answers

How to disable user interaction while ProgressBar is visible in android?

I am using a custom ProgressBar. Now while a task is going on, I am showing the progress bar, but user can still interact with the views and controls. How do I disable the user interaction on whole view just like a ProgressDialog does , when it is…
intellignt_idiot
  • 1,962
  • 2
  • 16
  • 23
95
votes
2 answers

How to create loading dialogs in Android?

Those dark spinning progress dialogs in the Amazon and Engadget apps - are those standard in Android?
Eno
  • 10,730
  • 18
  • 53
  • 86
94
votes
5 answers

Show Download progress inside activity using DownloadManager

I'm trying to reproduce the same progress that DownloadManager shows in Notification bar inside my app, but my progress never is published. I'm trying to update it using runOnUiThread(), but for some reason it's not been updated. my download: String…
Victor Laerte
  • 6,446
  • 13
  • 53
  • 102
91
votes
13 answers

How to set the Android progressbar's height?

My activity_main.xml is below, as you see, the height is set 40 dip. And in MyEclipse, it looks like below: But when I run it on my phone, it looks like below: So my question is why the real height of the progressbar is not the one I set? How…
Tom Xue
  • 3,169
  • 7
  • 40
  • 77
90
votes
12 answers

Progress during large file copy (Copy-Item & Write-Progress?)

Is there any way to copy a really large file (from one server to another) in PowerShell AND display its progress? There are solutions out there to use Write-Progress in conjunction with looping to copy many files and display progress. However I…
Jason Jarrett
  • 3,857
  • 1
  • 27
  • 28
85
votes
7 answers

Windows Forms ProgressBar: Easiest way to start/stop marquee?

I am using C# and Windows Forms. I have a normal progress bar working fine in the program, but now I have another operation where the duration cannot be easily calculated. I would like to display a progress bar but don't know the best way to…
Mark Stahler
  • 4,186
  • 6
  • 29
  • 29
83
votes
10 answers

Upload Progress Bar in PHP

Does anyone know how to get a progress bar for an upload in php? I am trying writing code for a photo album uploader. I would like a progress bar to display while the photos are uploading. I am fairly new to php so I dont know everything about it.
Josh Curren
  • 10,171
  • 17
  • 62
  • 73
81
votes
18 answers

Can ffmpeg show a progress bar?

I am converting a .avi file to .flv file using ffmpeg. As it takes a long time to convert a file I would like to display a progress bar. Can someone please guide me on how to go about the same. I know that ffmpeg somehow has to output the progress…
Pawan Rao
  • 1,135
  • 2
  • 10
  • 11
81
votes
5 answers

Python enumerate() tqdm progress-bar when reading a file?

I can't see the tqdm progress bar when I use this code to iterate my opened file: with open(file_path, 'r') as f: for i, line in enumerate(tqdm(f)): if i >= start and i <= end: print("line #: %s" % i) …
Wei Wu
  • 1,023
  • 1
  • 9
  • 14
80
votes
14 answers

Animate ProgressBar update in Android

I am using a ProgressBar in my application which I update in onProgressUpdate of an AsyncTask. So far so good. What I want to do is to animate the progress update, so that it does not just "jump" to the value but smoothly moves to it. I tried doing…
user1033552
  • 1,499
  • 1
  • 14
  • 23
79
votes
2 answers

Twitter Bootstrap: Center Text on Progress Bar

I've been using Twitter's bootstrap and I would like the text on the progress bar to be centered on the on bar regardless of value. The below link is what I have now. I would like all text to be aligned with the bottom most bar. Screenshot: I've…
user830186
79
votes
14 answers

Change progressbar color through CODE ONLY in Android

I have a progressBar using the ProgressBar class. Just doing this: progressBar = new ProgressBar(this, null, android.R.attr.progressBarStyleHorizontal); I need to change the color of that one, using input value like so: int color = "red in RGB…
hico
  • 1,850
  • 1
  • 19
  • 28
76
votes
7 answers

Windows 7 progress bar in taskbar in C#?

If you've noticed in the Windows 7 beta, if you copy files or other system actions, the windows explorer icon in the taskbar will fill up with a green progress bar equivalent to the progress bar on the form. Is there a way that, in my C# forms, I…
CoreyOg