Sunday, October 6, 2013

Getting started with animations on Android

Want to get started with animations on Android? It turns out, things are surprisingly easy.

There are two ways to create animations:
  1. Using OpenGL --- See documentation here
  2. Using built-in View animations --- More here and here.
I explored the later. Basically the code boils down to the following:

1- Create an animation template. For example the following can be used to rotate an imageview back and forth:
2- You can then apply the animation to the view using the following code:
I created the following app to demonstrate various animations on arbitrary images:
Read the for more details.

Twitter is Hiring! A tech talk @ McGill University

Check out the (much nicer) keynote version here.