A convenience library for reversible AnimatedVectorDrawables
example-kotlinandexample-javaare companions of the Android recipe: The easy path to animated icons bog post. They contain examples completely uncoupled from the MorphView libraryexample-libraryshows how to use the MorphView library.librarycontains the MorphView library itself
implementation 'com.akaita.android:morphview:1.0.0'<com.akaita.android.morphview.MorphView
android:id="@+id/morphView"android:layout_width="100dp"android:layout_height="100dp"app:avdFirst="@drawable/avd_favorite_to_send"app:avdSecond="@drawable/avd_send_to_favorite" />overridefunonResume() {
favoriteButton.setOnClickListener { morphView.showAvdFirst() }
toggleButton.setOnClickListener { morphView.morph() }
sendButton.setOnClickListener { morphView.showAvdSecond() }
}