Fragments 2017

Fragments 2017

A conference on the mobile ecosystem in India

Chaitanya Nettem

@chaitanyanettem

Everything about Android Animations you were too afraid to ask

Submitted Jul 2, 2017

Animations in Android can be daunting with multiple moving parts and multiple ways of achieving similar results. From experience I have seen people just copying animation code from StackOverflow without really understanding how it all works. Understanding how the animation system works and what its limitations are is important to figuring out how and what you should animate in your app.

You’ll leave this talk having gotten a clear functional overview of everything about animations in Android including the newest Physics based Animation support library.

Outline

We will cover -

  • View Animations (the oldest animation system in Android. Only allows you to animate views and the following properties - position, size, rotation, and transparency)
  • Property Animations (Was introduced in Gingerbread. Allows you to animate objects other than views and also allows you to animate background colors)
  • Drawable Animations (allows you to animate Drawables by creating a film roll effect where you split an animation into multiple drawables and show them one after the other)
  • Transitions Framework
  • Animation Sets

All of the above topics come under time based animation systems which means that you have to specify the time for which you want the animation to run.

The Android UI Toolkit team recently introduced Physics based animations where you don’t have to provide total time required for an animation. Instead you specify source, destination and velocity. This allows a bunch of new possibilities which we will cover. For instance if the destination of your view moves then the animation doesn’t abruptly stop after its time ends but continues until the destination is reached.

  • Physics Based Animations
    • Dynamic Animation
    • Spring Animation
    • Spring Force
    • Fling Animation

This talk will be code heavy and gif heavy. We will go over sample code and demonstrate its effects.

Speaker bio

I have been working on Android apps for the past 3 years. I work with Android, Python and Javascript at Fireframe.io as a software developer. You might know me from other events like Pycon 2014 in Montreal where I presented a poster on Creating a Fall Detector using Raspberry Pi and Python or from my talk at Droidcon 2016, Bangalore on Jack & Jill or from my indie app Search for Reddit.

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hosted by

How do you make a great mobile experience? Explore with Fragments. Follow Fragments on Twitter more