ProgressButton
ProgressButton copied to clipboard
Progress Bar Stuck Issue
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
Do you have animations enabled on your test device?
Yes, I do. And I also tried this one a production device and still same thing happened. I wonder if I’m missing something.
I have the same issue