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?
hide()
dismiss()
cancel()
How to hide the progress bar?
ProgressBar.setVisibility(View.INVISIBLE)
should be enough.
Edit: typo fixed.
"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)
ProgressBar progressBar = (ProgressBar) findViewById(R.id.progressBar); progressBar.setVisibility(0); --visible progressBar.setVisibility(4); --invisible progressBar.setVisibility(8); --gone (like dismiss)