Android View Animation

by keen
  • Frame Animations in Android

    Animations add vivacity and personality to your apps. Let’s take a look at how to implement a subcategory of animations called “Frame Animations,” meaning that they’re drawn frame by frame.

    In Google’s official Material Design spec, there’s an entire page dedicated to Delightful Details, which has wonderful examples of Frame Animations in action...

  • Android Animations Tutorial 1: Introduction

    The Animations Framework lets you create visually appealing animations and transitions in you apps. Using these animations in the right places can turn your good looking app into an outstanding and highly usable app. Adding animations can look like a challenging task but it is actually not that difficult at all. In this series I want to show how simple animations really are and encourage you to use them more freely and confidently...

  • Android Animations Tutorial 2: View Animations Overview

    In the last post I introduced the Android’s simple View Animation system and implemented a basic animation. In this post I will tell you what properties you can animate with the View Animation systems and how to combine multiple animations. I will also talk about how to customise the animation using different interpolators...

  • Android Animations Tutorial 3: Customising Animations

    In the last post I promised to continue the animations tutorial with telling you how customise your animation using interpolators and attributes that are common to all ViewAnimation objects. In this post I will be using a simple animation of a ball to illustrate these customisations...

  • Android Customization: How to Build a UI Component That Does What You Want

    It is not uncommon for developers to find themselves in need of a UI component that is either not provided by the platform they are targeting or is, indeed, provided, but lacks a certain property or behavior. The answer to both scenarios is a custom UI component...

  • Android Animations Tutorial 4: Programming View Animations

    Previously I showed you how to create View animations using XML resources. I just wrote a few lines of actual Java code that was only needed to start the animation. In this post I will show you how you can achieve the same effect using the View Animation API. This gives you more freedom because you can dynamically specify the start and end values of your animation...

  • Android Animations Tutorial 5: More on Interpolators

    Today I will show you how to customise and even create your own interpolators. As discussed previously, the View Animation system provides a number of ready made interpolators. But sometimes you have your own requirements and you just want that interpolator that behaves slightly different. You are able to customise the existing interpolators and even create your own interpolators from scratch...

  • Android Animations Tutorial 6: Animation Sets and Start Offset

    Until now we have avoided talking about startOffset, a property that allows you to delay the start of an animation by a specified number of milliseconds. You can do this in the XML resource file of your animation...

  • Android Animations Tutorial 7: The secret of fillBefore, fillAfter and fillEnabled

    When reading though the documentation for View Animations you might stumble across the three flags fillBefore, fillAfter and fillEnabled. You can set the flags in the XML resource of an animation, something like this...