skydoves / AndroidVeil

:performing_arts: An easy and flexible way to implement loading skeletons and shimmering effects on layouts for Android.
Apache License 2.0
1.52k stars 106 forks source link

VeilRecyclerFrameView need scroll to show the skeleton shimmering effect #6

Closed indradevelop closed 3 years ago

indradevelop commented 5 years ago

I used VeilRecyclerFrameView the default is veil() but the shimmering efect need scroll bottom before showing the skeleton

` binding.veilLayoutExplore.setVeilLayout(R.layout.shimmer_tour_explore,4) binding.veilLayoutExplore.getVeiledRecyclerView().addItemDecoration(VerticalItemDecoration(requireContext().resources.getDimensionPixelOffset(R.dimen.divider))) binding.veilLayoutExplore.veil()

    binding.veilLayoutExplore.setLayoutManager(LinearLayoutManager(requireContext()))
    binding.veilLayoutExplore.getRecyclerView().addItemDecoration(VerticalItemDecoration(requireContext().resources.getDimensionPixelOffset(R.dimen.divider)))
    binding.veilLayoutExplore.setAdapter(adapter)`