-3

Is it possible to do an animation like this :Animation GIf

If possible could someone please guide me on that?

p.mathew13
  • 920
  • 8
  • 16
  • This might help you, use the combination of drawable animation library particle generating library, links are https://github.com/DenisMondon/easy-animated-vector-drawable?utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=6200 and https://github.com/DanielMartinus/Konfetti?utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=5884 – Deepak Kumar Sep 21 '18 at 16:17
  • Can someone please tell me why the question is getting downvotes? – p.mathew13 Sep 21 '18 at 17:13

1 Answers1

1

LikeButton library is desugned to create buttons like that.

First make sure you use the JitPack dependency url:

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

Then add this dependency to your app module build.gradle:

dependencies {
        ...
        compile 'com.github.jd-alexander:LikeButton:0.2.3'
    }
}

And use it in xml like:

<com.like.LikeButton
    app:icon_type="heart"
    app:icon_size="25dp"
    android:id="@+id/heart_button"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"/>

Then you'll get a view like this:

Preview

Sdghasemi
  • 5,370
  • 1
  • 34
  • 42