Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide progressbar in Android?

I added a progressbar to my app but I want to hide it after some doing some action,

I used hide(), dismiss() and cancel()... but none of them work?

How can I hide the progressbar?

like image 491
Adham Avatar asked Jan 17 '11 21:01

Adham


People also ask

What is ProgressBar in android?

Android ProgressBar is a graphical view indicator that shows some progress. Android progress bar displays a bar representing the completing of the task. Progress bar in android is useful since it gives the user an idea of time to finish its task.

How do I stop progress bar?

You want to stop the progressDialog or change its UI not to be circular? You can set your progressbar's visibility to invisible or gone through progressbar. setVisibility(View. INVISIBLE); or progressBar.

What is a difference between SeekBar and ProgressBar in android?

A SeekBar is an extension of ProgressBar that adds a draggable thumb. The user can touch the thumb and drag left or right to set the current progress level or use the arrow keys. Placing focusable widgets to the left or right of a SeekBar is discouraged.

How to show progress bar in dialog in android?

In android there is a class called ProgressDialog that allows you to create progress bar. In order to do this, you need to instantiate an object of this class. Its syntax is. ProgressDialog progress = new ProgressDialog(this);


1 Answers

ProgressBar.setVisibility(View.INVISIBLE) 

should be enough.

Edit: fixed typo.

like image 176
Jake Kalstad Avatar answered Oct 08 '22 09:10

Jake Kalstad