This is a simple Kotlin library that include some effects.
This library was first released by WeselyOng and I made a Kotlin version of it. I still working on some more effect.
**This library is not ready for production. This is a pre-release.**
To make a click effect add ClickEffects library in your project:
implementation 'com.github.johnjeremih:ClickEffects:0.1.0'
heart_image_button.setOnClickListener {
ClickEffects.animParticalNova(context,it,18)
ClickEffects.animExplosion(baseContext,it)
ClickEffects.animRing(baseContext, it, 400)
ClickEffects.animJumping(it)
ClickEffects.animShaking(it)
}
mButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
ClickEffects.animParticalNova(context,v,18)
ClickEffect.animExplosion(context, v);
ClickEffect.animRing(context, v, 400);
ClickEffects.animJumping(v)
ClickEffect.animShaking(v);
}
});