AVLoadingIndicatorView icon indicating copy to clipboard operation
AVLoadingIndicatorView copied to clipboard

show() does not work after hide()

Open ugurcany opened this issue 7 years ago • 8 comments

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().

ugurcany avatar Sep 26 '16 08:09 ugurcany

I have the same problem

ianomad avatar Nov 21 '16 07:11 ianomad

I have the same problem

cj150104116 avatar Nov 23 '16 07:11 cj150104116

这个问题我也遇到,看了下源码,感觉确实是hide()方法里面,mPostedShow = false没设置导致的吧。

shuimuqinghua avatar Nov 26 '16 03:11 shuimuqinghua

+1

developer-- avatar Jan 11 '17 13:01 developer--

解决了,可以调用smoothToShow()和smoothToHide()方法。

JoyHong avatar Jun 28 '17 06:06 JoyHong

Check pull request: https://github.com/81813780/AVLoadingIndicatorView/pull/97

l0l3r avatar Sep 15 '17 13:09 l0l3r

Same problem here. Try using setVisibility() instead of hide()/show().

c0dehunter avatar Nov 25 '17 15:11 c0dehunter

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

Dohab avatar Aug 10 '18 11:08 Dohab