Closed MoustafaElsaghier closed 1 year ago
I'd like to know what will happen on the memory side in the case of a developer called shimmerLayout.isVisible = false without calling stopShimmer()
shimmerLayout.isVisible = false
stopShimmer()
will ShimmerLayout handle stop on its own OR animation will keep running and consuming memory and must call stopShimmer()?
I've checked the code but, I couldn't find anywhere mValueAnimator.cancel() out of bounds stopShimmer() and setShimmer()
mValueAnimator.cancel()
setShimmer()
so, please can someone assist with that question, please?
It calls stopShimmer() when visibility set to gone or invisible. See onVisibilityChanged
thank you, noted
I'd like to know what will happen on the memory side in the case of a developer called
shimmerLayout.isVisible = false
without callingstopShimmer()
will ShimmerLayout handle stop on its own OR animation will keep running and consuming memory and must call
stopShimmer()
?I've checked the code but, I couldn't find anywhere
mValueAnimator.cancel()
out of boundsstopShimmer()
andsetShimmer()
so, please can someone assist with that question, please?