Skip to content

This is a simple Kotlin library that include some effects.

Notifications You must be signed in to change notification settings

johnjeremih/ClickEffects

Repository files navigation

ClickEffects

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.

Here is the original post

**This library is not ready for production. This is a pre-release.**

USAGE

To make a click effect add ClickEffects library in your project:

implementation 'com.github.johnjeremih:ClickEffects:0.1.0'

Kotlin

heart_image_button.setOnClickListener {
         ClickEffects.animParticalNova(context,it,18)
         ClickEffects.animExplosion(baseContext,it)
         ClickEffects.animRing(baseContext, it, 400)
         ClickEffects.animJumping(it)
         ClickEffects.animShaking(it)
}

Java

      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);
                
            }
        });

About

This is a simple Kotlin library that include some effects.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages