Click Shrink Effect
A simple library to add a temporary shrinking effect on View while clicking.
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'
}