Skip to content
dips25 edited this page Jun 3, 2026 · 1 revision

Add dependency

  `implementation 'com.github.dips25:MyLikeView:likeview1.0'`

Add the view

  <com.anim.likeview.LikeView
          android:layout_width="30dp"
          android:layout_height="30dp"
          app:startDrawable="@drawable/heart_off"
          app:endDrawable="@drawable/heart_on"
          app:dotsColor="@color/red"
          android:layout_centerInParent="true"
          android:id="@+id/like"/>

Start the anim onClick


       LikeView c = (LikeView) findViewById(R.id.like);

        c.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                c.startAnim();
            }
        });

1000039681

Clone this wiki locally