Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i progressbar stop or start? #73

Open
hwaniRed opened this issue Apr 27, 2020 · 3 comments
Open

How can i progressbar stop or start? #73

hwaniRed opened this issue Apr 27, 2020 · 3 comments

Comments

@hwaniRed
Copy link

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

@sebastinto
Copy link

sebastinto commented Sep 29, 2020

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

@freeridre
Copy link

freeridre commented May 8, 2021

Okey, and in Java? :) @OEssHRERLr770rGGLOH0

@sebastinto
Copy link

sebastinto commented May 9, 2021

@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) 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants