MorphView

A convenience library to handle reversible AnimatedVectorDrawables

License

License

GroupId

GroupId

com.akaita.android
ArtifactId

ArtifactId

morphview
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

aar
Description

Description

MorphView
A convenience library to handle reversible AnimatedVectorDrawables
Project URL

Project URL

https://github.com/akaita/MorphView
Source Code Management

Source Code Management

http://github.com/akaita/MorphView/tree/master

Download morphview

How to add to project

<!-- https://jarcasting.com/artifacts/com.akaita.android/morphview/ -->
<dependency>
    <groupId>com.akaita.android</groupId>
    <artifactId>morphview</artifactId>
    <version>1.0.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.akaita.android/morphview/
implementation 'com.akaita.android:morphview:1.0.0'
// https://jarcasting.com/artifacts/com.akaita.android/morphview/
implementation ("com.akaita.android:morphview:1.0.0")
'com.akaita.android:morphview:aar:1.0.0'
<dependency org="com.akaita.android" name="morphview" rev="1.0.0">
  <artifact name="morphview" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.akaita.android', module='morphview', version='1.0.0')
)
libraryDependencies += "com.akaita.android" % "morphview" % "1.0.0"
[com.akaita.android/morphview "1.0.0"]

Dependencies

runtime (1)

Group / Artifact Type Version
com.android.support » appcompat-v7 jar 26.1.0

Project Modules

There are no modules declared in this project.

MorphView

A convenience library for reversible AnimatedVectorDrawables

Structure

  • example-kotlin and example-java are companions of the Android recipe: The easy path to animated icons bog post. They contain examples completely uncoupled from the MorphView library
  • example-library shows how to use the MorphView library.
  • library contains the MorphView library itself

Usage

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" />
override fun onResume() {
    favoriteButton.setOnClickListener { morphView.showAvdFirst() }
    toggleButton.setOnClickListener { morphView.morph() }
    sendButton.setOnClickListener { morphView.showAvdSecond() }
}

Versions

Version
1.0.0