/ UI

A simple library to add a temporary shrinking effect on View while clicking

A simple library to add a temporary shrinking effect on View while clicking

Click Shrink Effect

A simple library to add a temporary shrinking effect on View while clicking.

Click-Shrink-Effect

Usage

Kotlin:

 button.applyClickShrink()
 fab.applyClickShrink()
 card_view.applyClickShrink()
 textview.applyClickShrink()
 image_view.applyClickShrink()

Java:

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

Installation

In build.gradle

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

dependencies {
    implementation 'com.github.realpacific:click-shrink-effect:1.0'
}

GitHub