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
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
21
votes
5 answers

ContentLoadingProgressBar is never shows

I've replaced in my fragment simple ProgressBar with ContentLoadingProgressBar. Now fragment layout looks like this:
Bersh
  • 2,789
  • 3
  • 33
  • 47
20
votes
6 answers

Android - Tinting ProgressBar on pre-Lollipop devices

My app's minimum API-level is 19 (KitKat), and contains a layout with a horizontal ProgressBar. I'm using android:progressTint attribute to tint the bar to a custom color. It works pretty well on Lollipop (API 21) and above, but below (for example…
20
votes
3 answers

Modifying the resource image of Progress Bar

I want to create a progress bar for Android. I have four images for my square shaped progress bar. I am using the android defined progress bar:
J_Strauton
  • 2,270
  • 3
  • 28
  • 70
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…
19
votes
3 answers

Android ProgressBar UI custom layout

I am trying to customize a status bar so it will look like this image: However, after a good couple of hours all I have is a status bar with the background I need only (Image 2): The current code I have is: xml layout:
gunar
  • 14,660
  • 7
  • 56
  • 87
19
votes
8 answers

Create and show ProgressBar programmatically

I have created a ProgressBar programmatically as below in my activity. How do I make it show? progressBar = new ProgressBar(activity, null, android.R.attr.progressBarStyleSmall);
19
votes
8 answers

How to change progress bar progress color?

I created this progress bar for my app, but I cant get that yellow orangy color that appears to change to something like red or blue.
AmateurProgrammer
  • 333
  • 2
  • 3
  • 7
19
votes
3 answers

Android- How to implement Horizontal Step Progress Bar

I want to implement horizontal progress bar with steps like shown in following img. I could not find such native component in Android. Can anyone guide me on how to do it ?
Rohit
  • 2,538
  • 6
  • 28
  • 41
18
votes
7 answers

Styling indeterminate progressbar on ActionBar

I would like to put a progressBar on the action bar but setting requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); setProgressBarIndeterminateVisibility(true); on onCreate method produces a medium size progressBar (48dip x 48dip) I…
Matroska
  • 6,885
  • 14
  • 63
  • 99
18
votes
5 answers

How to create circular progress bar(pie chart) like indicator - Android

Now I have a horizontal progress bar which is updated programmatically via ProgressBar setProgress method:
Paul
  • 3,812
  • 10
  • 50
  • 73
16
votes
4 answers

How to change default ProgressBar circle color on Android

I am currently using an external library in my Android project imported via gradle. This library show a notification bar with a ProgressBar circle. This is the code I found in it's sources :
Davide
  • 583
  • 1
  • 6
  • 9
16
votes
4 answers

Progress Dialog is closed when touch on screen

I use a ProgressDialog in the thread. In the onButtonClick the thread is started, but when I touch anywhere on the screen the ProgressDialog is closed. How can I prevent this? private void ButtonClick(View view) { btn1 = (Button)…
Kailas
  • 3,173
  • 5
  • 42
  • 52
16
votes
4 answers

Centering ProgressBar Programmatically in Android

I'm trying to center a ProgressBar programmatically using the following: ViewGroup layout = (ViewGroup) findViewById(android.R.id.content).getRootView(); progressBar =…
James B
  • 8,975
  • 13
  • 45
  • 83
15
votes
2 answers

How to update progressbar in a ListView item

I have a ListView attached to an ArrayAdapter. When the user clicks a download button for an item in the ListView a download starts using the DownloadManager. What I want to do is to track the download progress with a progress bar (placed in the…