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
0
votes
1 answer

How to get progress bar running during garbage collection process?

Clicking on one of the tabs is causing delay of a second or two. Can't confirm that's the calculation delay or the garbage collector delay to free up the memory for a bitmap which is on that tab. The log is having some dalvik processing to free up…
sjain
  • 23,126
  • 28
  • 107
  • 185
0
votes
2 answers

Why progress dialog is still showing and current async task waiting for previous async task?

I start a service on user login which has a functionality to download many attachments in background using AsyncTask. While the background download of attachments is in progress and user logged in to the application, I rotate my device from…
sjain
  • 23,126
  • 28
  • 107
  • 185
0
votes
1 answer

Android Add indeterminate progress bar to webview when loading url

Hi I'm trying to implement a progress bar to my webview that pops up while waiting for the webview to load. I've seen a few ways of doing it but I'm not sure which is the best way to go about doing it. Layout:
Paddy1990
  • 946
  • 4
  • 13
  • 30
0
votes
0 answers

I lost the ProgressBar moving my layout to a custom component

I have a "complex" layout that I want to "move" to a custom component to be able to re-utilize easily but when I do that ProgressBar disappears. I think that the cause could be that the ProgressBar has a custom progressDrawable. During code…
0
votes
2 answers

How can I set progress value correctly?

I searched many times on google and stackoverflow, but I cant find really what I need. I wrote a code which upload file to server with asynctask method. What I did is: In asyntask method I upload my file with post method to my webservice. in…
0
votes
1 answer

Android start horizontal progress bar from center

I'm working on a custom Android widget that will both positive and negative values as a bar. Since I'm going with a stock look, I thought I'd extend the ProgressBar class and use that as a base for my widget. However, I can't seem to find a way to…
Sam Whited
  • 6,880
  • 2
  • 31
  • 37
0
votes
1 answer

Increment ProgressBar on Chronometer "Tick"

I have a Chronometer which increments every second and displays elapsed time on screen. I also have three Progress Bars: SecondsProgressBar MinutesProgressBar HoursProgressBar When the Chronometer increments every second I'd like to fill the…
Idob
  • 1,620
  • 4
  • 16
  • 27
0
votes
1 answer

ActionBarSherlock indeterminate progress bar shows on top of action bar

I am getting the ABS indeterminate progress to appear, however it appears ABOVE the action bar. This is consistent with the ABS Progress demo behavior, but it is not what I want. I want the Gmail behavior. Here are my screenshots and ABS Demo…
0
votes
1 answer

NullpointerException in onPreExcute of AsyncTask for ProgressBar

I had a NullPointerException when I try to set ProgessBar to visible in onPreExecute AsyncTask (mProgressBar.setVisibility(View.VISIBLE);). I don't know what went wrong! Thanks you all!
0
votes
1 answer

Two view at same spot, with same height and width in XML

In my widget I've an image of a refresh icon and circular progress bar (CPB) that is showed when the refresh icon is pressed (obviously only one view can be showed in the same time). The CPB is too big, so I try to set scaleX and scaleY to 0.7 and…
0
votes
1 answer

Activity is destroyed when pressed back button or up button in actionbar

As i am Building bus time table app which inserts and displays result of query in a activity, each time i press back button and re launch this activity, the data is again entered and result of the query is duplicated. how to avoid this ? Also When…
0
votes
2 answers

ProgressDialog dismiss before the end of the AsyncTask if touched or longer than standby time

I have an AsyncTask in this form private class AsyncOperation extends AsyncTask { @Override protected void onPreExecute(){ pDialog = new ProgressDialog(MyActivity.this); …
AndreaF
  • 11,975
  • 27
  • 102
  • 168
0
votes
1 answer

Set width of ProgressBar Dynamically Android

I am using ProgressBar dynamically. Now, I want to set its width based on Its Progress. For i.e. If Its progress is 10% then show its width 10%, If Its progress is 82% then show its width 82%. Layout.xml:
Jeeten Parmar
  • 5,568
  • 15
  • 62
  • 111
0
votes
0 answers

Update array of progressbar in asynctask

I have an asynctask in which I pass an array of progressbars as a parameter. In the doinbackground method, I compute the progress of each progressbar and make a call to PublishProgress with progress as parameter. This is how I have done: static…
faizanjehangir
  • 2,771
  • 6
  • 45
  • 83
0
votes
1 answer

Creating a ProgressBar in Android with no background

I would like to create a ProgressBar with no background. I've been able to turn the background transparent, but there is still padding in the space where the background normally shows. Setting padding to 0 does not change this. Is it possible to…
EricaCooksey
  • 239
  • 1
  • 12