Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enabling skeleton loading #4

Open
ghost opened this issue May 3, 2018 · 1 comment
Open

Re-enabling skeleton loading #4

ghost opened this issue May 3, 2018 · 1 comment
Assignees

Comments

@ghost
Copy link

ghost commented May 3, 2018

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.

@cuongnv219
Copy link

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();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants