Delay in showing the shimmer effect
sawa-ko opened this issue · 4 comments
- Library Version 1.0.6
- Affected Device(s) All
I just started using this dependency but I have encountered a serious problem. Why do I have this great delay to show the shimmer effect in the recyclerview? It takes a long time for the effect to appear.
I attach screen with the problem (I'm sorry for the poor quality, just so I could convert the video to gif).
Any way to solve this? Just in case it is necessary to know, I do the unVeil() only when I get all the data of my api on the internet.
@mak3ru-in0ch1
Hi,
I recommend to use the view's default visibility to invisible
, and make it to visible
after called unveil
. like below.
Usecase0-Layout.
Usecase1-RecyclerView and layout-xml.
The veil
function will wait during the masking all of the views, because of measuring the size of views.
Some people or companies do not want all of the views being invisible
and using veil
firstly, so I did not make the views invisible
as the basic works.
Thank you for your issue!
@mak3ru-in0ch1
It is added a new feature #8.
Implemented a new feature: defaultChildVisible
.
All child views will be invisibled when called veil()
by default.
This feature will be applied on the next version !
Great. :)
Thanks You.