AVLoadingIndicatorView
AVLoadingIndicatorView copied to clipboard
show() does not work after hide()
Calling show()
after hide()
does not work. The view is still invisible. Probably, you forgot to set view visibility to "visible" insideshow()
. However, there is no such issue while using smoothToShow()
and smoothToHide()
.
I have the same problem
I have the same problem
这个问题我也遇到,看了下源码,感觉确实是hide()方法里面,mPostedShow = false没设置导致的吧。
+1
解决了,可以调用smoothToShow()和smoothToHide()方法。
Check pull request: https://github.com/81813780/AVLoadingIndicatorView/pull/97
Same problem here. Try using setVisibility() instead of hide()/show().
I use this to fade in:
ObjectAnimator.ofFloat(avi, "alpha", 1f).setDuration(400).start()
and this to fade out:
ObjectAnimator.ofFloat(avi, "alpha", 0f).setDuration(400).start()