/ Shrink

Add a shrinking effect on any View while clicking

Add a shrinking effect on any View while clicking

Click Shrink Effect

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

Built with ❤︎ by Hardik Dungrani

shrinkeffect_screen

💻 Installation

Add this in your app's build.gradle file:


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

dependencies {
    implementation 'com.hardik.clickshrinkeffect:shrinkeffect:1.0.0'
}

❔ Usage

Basic Usage

Kotlin:

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

Java:

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

GitHub