ElasticView icon indicating copy to clipboard operation
ElasticView copied to clipboard

ElasticView is a JetpackCompose library will help you add an Elastic Effect for your all kind of widgets

ElasticView

ElasticView is a JetpackCompose library that will help you add an Elastic Effect for your all kind of widgets

Maven Central

Setup

Update your settings.gradle file with the following dependency.

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' } // this one
    }
}

Update your module level build.gradle file with the following dependency.

dependencies {
  implementation 'com.github.qamarelsafadi:ElasticView:v0.2'
 }

How to use

You can wrap your widget with ElasticView and you can enjoy the effect

ElasticView {
        Text(text = "Hello Android!", modifier = Modifier.align(Alignment.Center))
    }

Find this library useful? ❤️

Star it and Follow me for more content like this

Support

"Buy Me A Coffee"