查找任务完成的动画库以在Android Studio中使用

查找任务完成的动画库以在Android Studio中使用,android,android-studio,animation,Android,Android Studio,Animation,我想找到一个任务完成的动画,就像下面的一样,我可以在我的Android应用程序中使用。当我按下一个按钮,我希望这个弹出,简单 我当前的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:

我想找到一个任务完成的动画,就像下面的一样,我可以在我的Android应用程序中使用。当我按下一个按钮,我希望这个弹出,简单

我当前的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>

给你:

使用说明也都在上面:

<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"/>
将jitpack添加到根build.gradle

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}
添加为依赖项

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

所有这一切都归功于GitHub用户Collin Flynn,cdflynn。

在我的谷歌地图活动中,我调用
CheckView mCheckView=(CheckView)this.findViewById(R.id.check);mCheckView.check()但结果很奇怪:请参见此处:。也没有动画。我该怎么解决?好的,一旦这个问题解决了,我会奖励你我们可以在这里交流。我上传了我的xml代码,检查一下,我会奖励你,我们会在以后解决这个问题。上面说我可以在19小时内奖励你。我会在几天内检查这个,因为我现在很忙,谢谢!顺便说一下,我不能赏金,因为这个问题已经搁置了。然而,我对你的答案投了赞成票。
dependencies {
            implementation 'com.github.cdflynn:checkview:v1.1'
    }