Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

com.dpforge:skelly

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.dpforge:skelly

A tiny library for displaying skeletons while the content itself is loading

  • 1.0.1
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

Skelly

Build Status Latest release

Skelly is a tiny library for displaying skeletons while the content itself is loading. All skeletons are completely synchronized across the whole application no matter how many of them visible on a screen at the moment.

Example GIF

Customization

  • Start color of gradient animation (0xFFCCCCCC by default)
  • End color of gradient animation (0xFF444444 by default)
  • Corner radius (half height by default)

The parameters from above can be set up both in xml-layout and source code.

How to use

Just add it to your xml-layout:

<com.dpforge.skelly.SkeletonView
    android:id="@+id/skeleton"
    android:layout_width="match_parent"
    android:layout_height="48dp" />

Keep in mind that SkeletonView has no size so wrap_content does not work properly.

Sample

Sample project will show you how to use skelly library in you Android application.

Automatic substitution with SkeletonView

There is an experimental feature called SkeletonLayoutFactory. It allows you to take any regular layout and replace all views with SkeletonView. Fully automated!

You can take any xml-layout and turn it into skeleton-layout:

SkeletonLayoutFactory.Default.inflateFrom(
    context = this,
    layoutId = R.layout.avatar_title_subtitle,
    parent = container,
    attachToRoot = true
)

For more information please have a look at factory sample.

Install

Add the following dependency to your build.gradle script:

dependencies {
    implementation 'com.dpforge:skelly:1.0.1'
}

License

Copyright (c) 2021 Daniil Popov

Licensed under the MIT License.

FAQs

Package last updated on 06 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc