Fragments 2017

A conference on the mobile ecosystem in India

Everything about Android Animations you were too afraid to ask

Submitted by Chaitanya Nettem (@chaitanyanettem) on Sunday, 2 July 2017

videocam_off

Technical level

Intermediate

Section

Full Talk

Status

Submitted

Vote on this proposal

Login to vote

Total votes:  +7

Abstract

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.

Links

Comments

  • 1
    martin garix a month ago

    How to get help in windows 10,how to check my window upadte setting,now one a single click here this visit http://gethelpwindows10.com window are comes with the many new option and share this visit to all users.

  • 1
    clara albert (@claraalbert) 23 days ago

    My execution is assessed against an alternate arrangement of measures to different architects https://www.assignmentcamp.co.uk/ . I was condemned for not achieving 100% exactness; any mix-up is met with cruel analysis.

Login with Twitter or Google to leave a comment