Skip to content

Having Crash at scaleView.setScaleX(0) in likeAnimation #14

Description

@sunilsoniudaipur

having a crash during the likeAnimation method call.
I am using the ImageView inside the SmallBang

       <xyz.hanks.library.bang.SmallBangView

        android:id="@+id/bang_icthumsup"
        android:layout_width="match_parent"
        android:layout_height="74dp">

        <ImageView
            android:id="@+id/ivthumbsup"
            android:layout_width="64dp"
            android:layout_height="64dp"
            android:layout_gravity="center_horizontal"
            android:padding="10dp"
            android:src="@drawable/ic_thumbsup" />

and Just initlize the
mSmallBang =(SmallBangView) findViewById(R.id.bang_icthumsup);
if(mSmallBang!=null)
mSmallBang.likeAnimation();

but got crash with null poiner exception for scaleView

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions