I quote
Good evening, I’m Wu Xiaolong. My official account “One-Minute GitHub” will recommend interesting projects on GitHub to explore the value of open source. Welcome to follow me.
Here’s a look at Facebook’s open source glitter: Shimmer, an Android library that provides a way to add a flash effect to any view and text in your Android application, can be used as a page load indicator in actual development, and was originally developed for Facebook Home.
Results the preview
Directions for use
App/build. Gradle:
dependencies {
implementation 'com. Facebook. Shimmer: shimmer: 0.5.0'
}
Copy the code
Code call:
<com.facebook.shimmer.ShimmerFrameLayout
android:id="@+id/shimmer_view_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
<! -- Your view --></com.facebook.shimmer.ShimmerFrameLayout> Copy the code
The ShimmerFrameLayout tag has a number of custom properties to control the look and speed of the effect, see GitHub source for more information.
Making the address
https://github.com/facebook/shimmer-android
For more articles, follow the official number: GitHub in a Minute.