Closed ghost closed 3 years ago
you can use app:shimmer_base_alpha="1.0"
to make the shimmer overlay transparent. The default value of baseAlpha is 0.3
, have a look at com.facebook.shimmer.ShimmerDrawable
for all default values.
If this is not working for you, because the ShimmerDrawable
is not accessible via ShimmerFrameLayout
then use
showShimmer(true)
instead of startShimmer
and
hideShimmer
instead of stopShimmer
on the ShimmerFrameLayout
.
start/stop apis will start/stop the animation only. show/hide apis will show/hide the shimmer + start/stop the animation.
When I set containter.setShimmering(false) my button is getting stuck with inactive shimmer on it, and it also becomes enabled = false. How to bring back origin color for my view and stop disabling it on stopShimmering?