Open hwaniRed opened 4 years ago
Before onCreate():
private lateinit var progressBar: ProgressBar
In onCreate():
progressBar = spin_kit
When you want to show or hide, just call:
progressBar.visibility = View.GONE
progressBar.visibility = View.VISIBLE
Okey, and in Java? :) @OEssHRERLr770rGGLOH0
@freeridre I haven't written java code in a while but it would look something like this I imagine?
Before onCreate():
private ProgressBar mProgressBar;
In onCreate():
mProgressBar = (ProgressBar) findViewById(R.id.spin_kit);
When you want to show or hide, just call:
mProgressBar.setVisibility(View.GONE)
mProgressBar.setVisibility(View.VISIBLE)
Class doesn`t contain function stop or start
Also progressbar can`t be hide or show . I use this progress visibility = view.gone progress visibility = view.visible
also it doesn`t work
please reply