An animating check mark
Add a CrossView
to your layout
<nl.schmit.animationView.crossView.CrossView
android:id="@+id/check"
android:layout_width="200dp"
android:layout_height="200dp"
app:crossView_strokeColor="@color/green"
app:crossView_strokeWidth="@dimen/check_stroke_width"/>
Note that you can specify a stroke width and color with xml attributes crossView_strokeWidth
and crossView_strokeColor
respectively.
Call check()
:
mCrossView.check();
Add jitpack to your root build.gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add as a dependency
dependencies {
implementation 'com.github.cdflynn:crossView:v1.1'
}