Basic Example of the different ways to animate in Android using XML, ViewPropertyAnimator, Animations and Animators
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
gradle/wrapper
.gitignore
AppScreenshot.png
README.md
build.gradle
gradle.properties
settings.gradle

README.md

AndroidAnimationsExample

Basic Example of the different ways to animate in Android using XML, ViewPropertyAnimator, Animations and Animators

These represent multiple objects with scaling and alpha, two of the most "Taxing" animations. There are bad exmaples and Good examples here and what is most important is that you will be able to see the differences.

App Screenshot

Min SDK

Min sdk is API 21 (Lollipop)

Features

Framerate is shown by the inclusion of TinyDancer (https://github.com/friendlyrobotnyc/TinyDancer).

4 different animation types shown:

  • XML Animations
  • View Property Animator / view.animate()
  • Animations (ScaleAnimation and AlphaAnimation with AnimationSet)
  • Animators (ObjectAnimator with AnimatorSet)