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

Progress Bar Stuck Issue #20

Open
mohsin opened this issue Feb 19, 2020 · 3 comments
Open

Progress Bar Stuck Issue #20

mohsin opened this issue Feb 19, 2020 · 3 comments

Comments

@mohsin
Copy link

mohsin commented Feb 19, 2020

I'm using this library as per the code you've provided in the README. Here's how I'm using it..

LoginFragment....

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
    super.onViewCreated(view, savedInstanceState)
    bindProgressButton(btnLogin)
    btnLogin.attachTextChangeAnimator()
    btnLogin.setOnClickListener {
        btnLogin.showProgress {
            buttonTextRes = R.string.signing_user_in
            progressColor = Color.WHITE
        }
        api.performLogin(username, password)...
         // Async call which runs a handler OnComplete in which I'm calling btnLogin.hideProgress(R.string.action_sign_in)
    }
    ...
    ...
}

However the loading bar freezes. Why do you think this is happened? Am I doing it wrong? Also, I noticed that the text became uppercase which is pretty much bad! Here's a recording:
https://youtu.be/FTSd1FnSRP4

@razir
Copy link
Owner

razir commented Mar 5, 2020

Do you have animations enabled on your test device?

@mohsin
Copy link
Author

mohsin commented Mar 5, 2020

Yes, I do. And I also tried this one a production device and still same thing happened. I wonder if I’m missing something.

@kosratdev
Copy link

I have the same issue

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