ValeryPonomarenko Compose Shimmer Save

Add a shimmer effect to the layout in Android Compose

Project README

Shimmer

Release

Library provides an easy way to a add shimmer effect in Android Compose project.

Installing

To download it from the jitpack, add these lines in your root build.gradle at the end of repositories:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

And then add to the module's build.gradle

implementation "me.vponomarenko:compose-shimmer:LATEST_VERSION"

LATEST_VERSION is 1.0.0

How to use

To add a shimmer effect to the layout, just use the .shimmer() modifier

Column(
    modifier = Modifier
        .fillMaxSize()
        .shimmer()
) {
    Box(
        modifier = Modifier
            .fillMaxWidth()
            .height(120.dp)
            .background(
                color = Color(0xFFF3F3F3),
                shape = RoundedCornerShape(4.dp)
            )
    )
}
Open Source Agenda is not affiliated with "ValeryPonomarenko Compose Shimmer" Project. README Source: ValeryPonomarenko/compose-shimmer
Stars
83
Open Issues
0
Last Commit
8 months ago

Open Source Agenda Badge

Open Source Agenda Rating