ProgressButton icon indicating copy to clipboard operation
ProgressButton copied to clipboard

Progress Bar Stuck Issue

Open mohsin opened this issue 5 years ago • 3 comments
trafficstars

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

mohsin avatar Feb 19 '20 14:02 mohsin

Do you have animations enabled on your test device?

razir avatar Mar 05 '20 12:03 razir

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

mohsin avatar Mar 05 '20 13:03 mohsin

I have the same issue

kosratdev avatar Jan 25 '22 09:01 kosratdev