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
11
votes
3 answers

Path.approximate() not supported on android studio 0.8.14 beta

Rendering Problems Path.approximate() not supported. Failed to parse file ~\sdk\platforms\android-21\data\res\drawable\progress_medium_material.xml error after add ProgressBar to Layout How to resolve?
11
votes
2 answers

Show progressbar on MenuItem, even if it is on split action bar mode

I'm checking how to change the icon of a menu item to a progress bar loading animation. I tried with
11
votes
2 answers

Update progress bar in listview for multi files download

How can we update a progress bar in ListView. When each progress bar is associated download of a file and which is done via AsyncTask. The feature will be: Each progress bar will be update with downloading process. When a file complete downloaded …
10
votes
3 answers

How to set thickness of circular indeterminate progress bar android?

I have two nested circular indeterminate progress bars but I cannot set their thickness to an equal size. I have tried to customize it using shapes. However, that removes the default behaviour of the circular indeterminate progress. I customize…
10
votes
3 answers

Styling indeterminate horizontal progress bar on android

Styling determinate progress bar is easy, there are many tutorials to achieve that. This is on I'm using:
peter.o
  • 3,460
  • 7
  • 51
  • 77
10
votes
2 answers

How to give border to circle using paint

Hi i have implemented Progress bar and it is working fine, but my problem is i need to give a only border to circle using paint. I worked on that but it is taking all the area of circle, i need only border. My paint code: mCirclePaint = new…
Piku
  • 259
  • 1
  • 3
  • 17
10
votes
1 answer

Lollipop - Indeterminate ProgressBar color change - Programmatically

I am using the code below to change the color of Indeterminate ProgressBar. This works well, till KitKat. But on Lollipop, it just stays Green. Can anyone help me out with this. I want to do it through Java and not XML. Code: This sets the spinner…
Vamsi Challa
  • 11,038
  • 31
  • 99
  • 149
10
votes
4 answers

Circular ProgressBar Background: Android Xamarin

I have a circular progress-bar and it works fine.But Background is not appearing, even though i have given shape for "background" in the xml drawable file and also progress starts from the right side of the circle (as shown in the figure). I want it…
10
votes
1 answer

Progressbar on the background of list item

I want background of a list item to work like a progress bar. For example, like in tTorrent file list: This is how it is done now: I use a relativelayout and two linearlyouts. One has textviews and another has two views which work as progressbar.…
9
votes
1 answer

no way to setProgressDrawable on RemoteViews

I'm trying to call setProgressDrawable on a ProgressBar in my RemoteViews However there doesn't appear to be a setDrawable(,,) method on RemoveViews I've tried setBitmap but setProgressDrawable takes a Drawable not a Bitmap…
Rob
  • 7,039
  • 4
  • 44
  • 75
9
votes
4 answers

how to change android progress bar thickness

this should be a very easy to customize style... i want a horizontal progress bar that is slithly thick (or that i can customize the thickness) and the color matches the apps color if i do
Rafael Lima
  • 3,079
  • 3
  • 41
  • 105
9
votes
5 answers

Android custom circular ProgressBar direction

I have a custom Circular Progressbar. This is the drawable I have for it to be determinate:
9
votes
5 answers

How to add a Progress Bar in a PreferenceFragment in Android?

How can I add a progress bar in a PreferenceFragment? I have some async task running that will display some values in my preference upon completion. So while it is doing the background process, I plan to show only a progress bar in the center. After…
ads
  • 1,703
  • 2
  • 18
  • 35
9
votes
3 answers

Android: set color programmatically to ProgressBar

I would like to set color programmatically to the progress bar primaryProgress, secondaryProgress as the color will be changed according to the background color of the screen. Code: LayerDrawable progressDrawable = (LayerDrawable)…
pearmak
  • 4,979
  • 15
  • 64
  • 122
9
votes
2 answers

HttpUrlConnection multipart file upload with progressBar

I want to check progress of uploading file by HttpUrlConnection. How I can do this? I've tried to calculate bytes when writing data in OutputStream but it's wrong, cause real uploading happens only when I call conn.getInputStream(), so I need…