Android button with delightful like animation inspired by Twitter's heart.
This is an example code described in blog post: Twitter's like animation in Android - alternative.
Android like button with delightful star animation inspired by Twitter's heart. See blog post for description.
Home Page: http://frogermcs.github.io/twitters-like-animation-in-android-alternative/
License: Apache License 2.0
Android button with delightful like animation inspired by Twitter's heart.
This is an example code described in blog post: Twitter's like animation in Android - alternative.
If you change the size of the LikeButtonView to 48dp then you can see how the animation does not display correctly. I guess you will need to build all of the other views based on the size of the LikeButtonView in order to correctly animate in smaller areas. To reproduce this issue, just change the size of the LikeButtonView inside activity_main of your sample app.
What are these two?
import butterknife.Bind;
import butterknife.ButterKnife;
I see this error in eclipse: The import butterknife cannot be resolved.
Is this only supported on >API21 ?
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewPropertyAnimator android.widget.ImageView.animate()' on a null object reference at com.frogermcs.io.likeanimation.LikeButtonView.onTouchEvent(LikeButtonView.java:138)
Which is this line:
ivStar.animate().scaleX(0.7f).scaleY(0.7f).setDuration(150).setInterpolator(DECCELERATE_INTERPOLATOR);
I did change some sizes in width and height:
<com.frogermcs.io.likeanimation.DotsView
android:id="@+id/vDotsView"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_gravity="center"/>
<com.frogermcs.io.likeanimation.CircleView
android:id="@+id/vCircle"
android:layout_width="12dp"
android:layout_height="12dp"
android:layout_gravity="center"/>
<ImageView
android:id="@+id/ivStar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
app:srcCompat="@drawable/ic_star_rate_off"/>
and in
<com.frogermcs.io.likeanimation.LikeButtonView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginEnd="10dp"
android:layout_alignRight="@+id/container_view"
android:layout_centerVertical="true"/>
Any idea on what is wrong,
i didnt change anything else
I am using the Like Animation in a CardView and on double click the card view I want to be able to activate the animation. Is this possible?
I believe that adding a gradle version of this library would be very beneficial to developers who want to include this project in their apps.
Edited - Spam
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.