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 should I go about saving/restoring progressBar?

My app is mainly a timer that counts down from 20 hours. I am wondering which method I should use for saving the information necessary for resuming the app with the timer showing the correct value. I don't know if I should use savedInstanceState or…
0
votes
1 answer

How to get the new Android progress view that is in 4.0?

I have just tried implementing a ProgressBar with the following two styles: ?android:attr/progressBarStyleLarge ?android:attr/progressBarStyleSmall However, they are the old, vanilla progress spinners that Android has always had. See below: I'm…
Tyler
  • 19,113
  • 19
  • 94
  • 151
0
votes
2 answers

Is there a way to customize the default progress bar (circular, not horizontal), with out using drawable resources?

I am just wondering if there is a simple way to customize the default circular progress bar provided in android. Let me clarify the question. I just want a circular shape showing some dynamism representing progress (network connection) as shown on…
0
votes
0 answers

Create progress dialog in TimerTask

I need to create a Progress Dialog on this Class. I am trying to make it to show, while all method is done. Is it possible ? Maybe somebody more experianced has faced this problem ? Is it possible to do that in this Class, or i need to do it when…
user3416113
  • 61
  • 1
  • 10
0
votes
1 answer

Show BroadcastReceiver data in progressBar

I'm trying to display wifi data. Well I'm getting data from a broadcastReceiver, then I'm trying to display it in a listView and to show the wifi signal Strength in a progressBar. Every time there I new data in onReceive method , the list and the…
Amina
  • 723
  • 8
  • 20
0
votes
1 answer

Android- How to use another layout as progressbar

I've seen this in lots of app , they don't use ProgressDialog because it doesn't let us to do anything in the app.I don't want that . I've seen it in another app ,instead of ProgressDialog , they make the ui to show a progressbar and also we can do…
user3579994
  • 131
  • 1
  • 4
  • 12
0
votes
0 answers

Android : Using horizontal progress bar in android to display downloading process

I have a class which create a progress bar in android import android.app.Activity; import android.app.ProgressDialog; import android.os.Bundle; import android.os.Handler; import android.widget.Button; import android.view.View; import…
Nessaj Nguyen
  • 163
  • 1
  • 6
  • 16
0
votes
2 answers

Show ProgressDialog while in handler background event

I want to show message with the text Scanning for 10 seconds. Normally we do the following when we use onPreExecute in AsyncTask, AlertDialog.Builder dialogo1 = new AlertDialog.Builder(getApplicationContext()); dialogo1.setMessage("Scanning..."); …
sjain
  • 23,126
  • 28
  • 107
  • 185
0
votes
0 answers

AsyncTask cannot update progress when slowly creating an object in background

I know how to use AsyncTask to download file, create a zip file or so.. as I call publishProgress() in my loop. I got stuck when doInBackground() has a single slow line, no loops here, just creating an object where its constructor has slow…
Tarek Eldeeb
  • 588
  • 2
  • 6
  • 24
0
votes
1 answer

Android Display image in progress bar instead of color

Progress bar image Hello cane someone help me please. I have bean trying for more than four hours to accomplish the following. I want the progress bar to display an image instead to display a color. I haven't found any tutorial about that?
Ahmad Moussa
  • 1,296
  • 18
  • 22
0
votes
1 answer

Fragment Viewpager Progress dialog

@Override public void setUserVisibleHint(boolean isVisibleToUser) { super.setUserVisibleHint(isVisibleToUser); if (isVisibleToUser) { new LoadGlobalNews().execute(); } } Am using the above method in…
0
votes
1 answer

Custom style for dynamically generated ProgressBars/Widgets

How do I create a custom horizontal ProgressBar style using styles.xml and then utilize it when I create a ProgressBar like so: ProgressBar bar = new ProgressBar(this, null, ???) All the tutorials I've seen focus on attaching the style when the…
0
votes
2 answers

Changing ProgressBar visibility from inside onClick

My activity_main.xml contains this progressBar, which starts hidden ("gone")
sports
  • 7,851
  • 14
  • 72
  • 129
0
votes
1 answer

Set width of Progressbar as per Progress Value and based on Device Screen

I am using ProgressBar as a part of Custom ListView. Now, I want to display ProgressBar's Width as per the value of ProgressBar and that is based on screen. For i.e. If progress Value is 100 then it should show its width 100% of the device screen…
Jeeten Parmar
  • 5,568
  • 15
  • 62
  • 111
0
votes
2 answers

Set width of Progressbar as per value of Progress and based on Device Screen

I am using ProgressBar as a part of Custom ListView. Now, I want to display ProgressBar's Width as per the value of ProgressBar and that is based on screen. For i.e. If progress Value is 100 then it should show its width 100% of the device screen…
Jeeten Parmar
  • 5,568
  • 15
  • 62
  • 111