Is it possible to do an animation like this :Animation GIf
If possible could someone please guide me on that?
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:
LikeButton library is desugned to create buttons like that.
First make sure you use the JitPack dependency url:
Then add this dependency to your app module build.gradle:
And use it in xml like:
Then you'll get a view like this: