Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NullPointerException #11

Open
arunavo4 opened this issue Sep 3, 2017 · 0 comments
Open

java.lang.NullPointerException #11

arunavo4 opened this issue Sep 3, 2017 · 0 comments

Comments

@arunavo4
Copy link

arunavo4 commented Sep 3, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant