Skip to content

A library provides an easy way to show skeleton loading view like Facebook and Alipay

Notifications You must be signed in to change notification settings

ethanhua/Skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

skeleton

a library provider a easy way to show skeleton loading view

img img img img

Demo Apk

you can scan the qrcode for download demo apk

Getting started

In your build.gradle:

dependencies {
   compile 'com.ethanhua:skeleton:0.1.0'
}

Feature

  • No invasive,You don't need to make changes to existing code.
  • Wide applicability,It is available for all views

Usage

for recyclerview:

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

 for view: 

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

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

   skeletonScreen.hide()

Thanks

https://github.com/sharish/ShimmerRecyclerView

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

About

A library provides an easy way to show skeleton loading view like Facebook and Alipay

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages