rasoulmiri / Skeleton

Skeleton for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Re-enabling skeleton loading

opened this issue · comments

Is there a way to start the loading again after the initial animation? I would like to implement a swipe refresh layout. The isAnimationPlay field is not set to default after the animation finishes.

commented

you can do like this
gradientXmlAdapter.measureHeightRecyclerViewAndItem(recyclerView, R.layout.item_gradient_xml);
gradientXmlAdapter.reloadSkeleton();

public void reloadSkeleton() {
this.items.clear();
skeletonConfig.setSkeletonIsOn(true);
notifyDataSetChanged();
}