I am using Volley for requests and want to add shimmer while data is loading. I can perform it with Handler but I don’t know when data will come and can’t set exact time. Here is code in my Fragment. I want to set value false to variable isShimmer and it makes so fast so my shimmer is not running: