Skip to content

Updated Skeleton library using Facebook Shimmer library for smooth experience

Notifications You must be signed in to change notification settings

usmanrana07/Skeleton

 
 

Repository files navigation

Skeleton

GitHub license
The library provides Shimmer animation effect in RecyclerView Adapters and Views.

Preview

img img img img

Usage

For RecyclerView:

skeletonScreen = Skeleton.bind(recyclerView)
                              .adapter(adapter)
                              .load(R.layout.item_skeleton_news)
                              .show();

 For View:

skeletonScreen = Skeleton.bind(rootView)
                              .load(R.layout.layout_img_skeleton)
                              .show();

More Config:

.shimmer(true)      // whether show shimmer animation.                      default is true
.count(10)          // the recycler view item count.                        default is 10
.color(color)       // the shimmer color.                                   default is #a2878787
.duration(1000)     // the shimmer animation duration.                      default is 1000;
.frozen(false)      // whether frozen recyclerView during skeleton showing  default is true; 

when data return you can call the method to hide skeleton loading view

skeletonScreen.hide()

Thanks

https://github.com/facebook/shimmer-android

About

Updated Skeleton library using Facebook Shimmer library for smooth experience

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%