Finding a task completed animation library to use in Android Studio

Viewed 307

I want to find a task completed animation like the one below which I can use in my Android app. when I press a button I want this to pop up, simple.

my current xml:

<?xml version="1.0" encoding="utf-8"?>
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/map"
    android:name="com.google.android.gms.maps.SupportMapFragment"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <com.google.android.material.floatingactionbutton.FloatingActionButton
        android:id="@+id/fab"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|center"
        android:layout_margin="@dimen/fab_margin"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:srcCompat="@drawable/location" />

    <cdflynn.android.library.checkview.CheckView
        android:id="@+id/check"
        android:layout_width="200dp"
        android:layout_height="200dp"
        app:checkView_strokeColor="@color/green"
        app:checkView_strokeWidth="1dp"/>
</fragment>

enter image description here

1 Answers

Here you go: https://github.com/cdflynn/checkview

Instructions to use it are all on there too:

<cdflynn.android.library.checkview.CheckView
        android:id="@+id/check"
        android:layout_width="200dp"
        android:layout_height="200dp"
        app:checkView_strokeColor="@color/green"
        app:checkView_strokeWidth="@dimen/check_stroke_width"/>

Call check():

 mCheckView.check();

Add jitpack to your root build.gradle

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Add as a dependency

dependencies {
            implementation 'com.github.cdflynn:checkview:v1.1'
    }

All credit to the GitHub User Collin Flynn, cdflynn.

Related