How to hide progress in Android?

I have added a progress indicator to my application, but I want to hide it after some actions,

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

How to hide the progress bar?

+7
source share
3 answers
 ProgressBar.setVisibility(View.INVISIBLE) 

should be enough.

Edit: typo fixed.

+22
source

"they are all work," does that mean that they work? But then why the question?

I would say: get an idea ru ru

  myView.setVisibility(View.GONE) 
+4
source
 ProgressBar progressBar = (ProgressBar) findViewById(R.id.progressBar); progressBar.setVisibility(0); --visible progressBar.setVisibility(4); --invisible progressBar.setVisibility(8); --gone (like dismiss) 
+2
source

All Articles