DEV Community

Akshay-Rana-Gujjar
Akshay-Rana-Gujjar

Posted on

1

Skeleton content loading animation in android | Facebook Shimmer

Facebook Shimmer

What is Facebook Shimmer?

Today we are going to see what is Facebook shimmer and how to use it?
See below example to understand Facebook shimmer.

content loading animation

The Facebook shimmer is used to show or indicate the user that the content is loading from somewhere which takes sometimes so that users need to wait. While content is loading, it is necessary to show the user an indication that content is loading and it is bad practice to leave screen blank which confuses user what is happening in the app or maybe the user thinks the app is hanging.

How to use Facebook Shimmer

So enough talking, let do some code on how to make content loading animation using facebook shimmer library. See below facebook shimmer android example

To use facebook shimmer first we need to add the dependency to your project. See below to add facebook shimmer dependency.

dependencies {
...
implementation 'com.facebook.shimmer:shimmer:0.5.0'

}

After adding dependency, let's create our layout. For demo purposes, we are creating our layout some like below.

Read the full article here: Facebook Shimmer

Thanks and good luck.

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more