Reactive motion for Android. Deprecated; please use the Motion library in Material Components for Android instead: https://material.io/develop/android/theming/motion/.
The Material Motion for Android repo.
Learn more about the APIs defined in the library by reading our technical documentation and our Starmap.
Note: This repo is deprecated. Please use the Motion library in Material Components for Android instead: https://material.io/develop/android/theming/motion/.
Add the Jitpack repository to your project's
build.gradle:
allprojects { repositories { maven { url "https://jitpack.io" } } }
Depend on the latest version of the library. Take care to occasionally check for updates.
dependencies { compile 'com.github.material-motion:material-motion-android:1.0.0' }
For more information regarding versioning, see:
Enable Java 8 language features.
android { compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } }
Note: You must use Android Studio 2.4 Preview 4 or newer.
You can have a copy of this library with local changes and test it in tandem with its client project. To add a local dependency on this library, add this library's identifier to your project's
local.dependencies:
com.github.material-motion:material-motion-android
Because
local.dependenciesis never to be checked into Version Control Systems, you must also ensure that any local dependencies are also defined inbuild.gradleas explained in the previous section.
Important
For each local dependency listed, you must run
gradle installfrom its project root every time you make a change to it. That command will publish your latest changes to the local maven repository. If your local dependencies have local dependencies of their own, you must
gradle installthem as well.
You must
gradle cleanyour project every time you add or remove a local dependency.
How to use the library in your project.
Open Android Studio, choose
File > New > Import Project..., choose the root
build.gradlefile.
To build the sample application, run the following commands:
git clone https://github.com/material-motion/material-motion-android.git cd material-motion-android gradle installDebug
To run all unit tests, run the following commands:
git clone https://github.com/material-motion/material-motion-android.git cd material-motion-android gradle test
We welcome contributions!
Check out our upcoming milestones.
Learn more about our team, our community, and our contributor essentials.
Licensed under the Apache 2.0 license. See LICENSE for details.