Skip to content

stevepham/skeleton

Repository files navigation

Skeleton


Demo skeleton for loading like facebook, linkedin,...


Download

Update later

Gradle

Add the dependency below to your module's build.gradle file:

dependencies {
    implementation "io.github.stevepham:skeleton:1.0.0"
}

Usage

    val config = ShimmerConfig(maskColor, shimmerColor, duration, angle) // init your config
    val skeleton = yourView.generateSkeleton(config) // for normal view
    val rvSkeleton = recyclerView.generateSkeleton(config, layoutId = R.layout.your_recycler_view_item, itemCount = 1) // for recyclerview

    skeleton.showSkeleton() // show skeleton while loading

    skeleton.showOriginal() // show normal view after content load finished

About

Skeleton library demo for Android

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages