This library add a shrinking effect on any ‘View’ while clicking.

How it’s work

Image for post
Image for post

How to integrate Click Shrink Effect Library into Android Project?

Step 1:

Add below code into <project>/build.gradle file.

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

Step 2:

Add below code into <project>/<app>/build.gradle.

dependencies {
// Add this line
implementation 'com.hardik.clickshrinkeffect:shrinkeffect:1.0.1'
}

Step 3:

Press on sync now in the Android Studio.

How to use Click Shrink Effect Library into Android Project?

Kotlin:

fab.applyClickShrink()
cardView.applyClickShrink()
textView.applyClickShrink()
imageView.applyClickShrink()

Java:

ClickShrinkEffectKt.applyClickShrink(fab);
ClickShrinkEffectKt.applyClickShrink(cardView);
// ORnew ClickShrinkEffect(fab);
new ClickShrinkEffect(cardView);

So that’s all for this Click Shrink Effect Tutorial. If any query/suggestion for Click Shrink Effect Tutorial ask freely on hardikdungrani8@gmail.com

Please go through my GitHub repository.

Thanks.

Hardik D.

I have extensive experience in developing innovative and complex Android /iOS Apps and also in Website Developing. Been working in Kotlin for the last 2 years.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store