How to hide progressbar in Android?

Adham picture Adham · Jan 17, 2011 · Viewed 40.1k times · Source

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?

Answer

Jake Kalstad picture Jake Kalstad · Jan 17, 2011
ProgressBar.setVisibility(View.INVISIBLE) 

should be enough.

Edit: fixed typo.