cogitolearning
February 6, 2014
Android, Tutorials
android, animation, observer, tutorial
In the previous post on property animations we have come to know two types of animators. The ObjectAnimator animates a property of a single object. The AnimatorSet is a container that manages multiple Animator objects and has the functionality to…
Read more
cogitolearning
January 30, 2014
Android, Tutorials
android, animation, listener, observer, tutorial
Using Animator Listeners Animator listeners provide a powerful tool to monitor the state of animation. The animation listener implements the classic observer design pattern. The Animator.AnimatorListener interface defines a number of methods that need to be implemented. Any number of…
Read more
cogitolearning
January 23, 2014
Android, Tutorials
android, animation, tutorial
In today’s post I will be talking about controlling animation flow. Using the Animator API you can start, stop and cancel animations. A little reported addition in the Kitkat API level 19 allows you to also pause and resume animations….
Read more
cogitolearning
January 16, 2014
Android, Tutorials
android, animation, evaluator, tutorial
Until now we have been animating float or int properties only. The Property Animation System is, however, not limited to only simple numeric types. Out of the box, you can also animate ARGB colours and Rect objects by using the…
Read more
cogitolearning
January 9, 2014
Android, Tutorials
android, animation, builder, tutorial
The Animation Set allows you to choreograph a number of animations to play in parallel and in sequence. This gives you a great degree of artistic freedom. It also means that the standard API can get somewhat confusing if you…
Read more
cogitolearning
December 5, 2013
Android, Tutorials
android, animation, property animations, tutorial
In the previous post on property animations I introduced the ObjectAnimator to create animations on arbitrary properties on objects. The only restriction is that the object must define a setter method for the property that should be animated. ObjectAnimator extends…
Read more
cogitolearning
November 28, 2013
Android, Tutorials
android, animation, introduction, tutorial
In a previous post I introduced you to the different types of animation systems that Android provides before explaining the View Animation System. The View Animation System allowed you to simply animate changes in the appearance of a View element….
Read more
cogitolearning
November 21, 2013
Android, Tutorials
android, animation, design, transition, tutorial, ui
In this series of posts I will develop a more practical example to show where transitions can be useful. In this post I will start with the initial layout and design of a user interface and create the default transitions…
Read more
cogitolearning
November 7, 2013
Android, Tutorials
android, animation, scene, transition, tutorial
In Android KitKat (API level 19) Google introduces a new system for animating layout changes. Before KitKat the only way to animate layout changes in XML was to set the flag animateLayoutChange on a ViewGroup. This did not give you…
Read more
cogitolearning
October 31, 2013
Android, Tutorials
android, animation, tutorial
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. <scale android:duration=”300″ android:fillAfter=”true” android:fillBefore=”false” android:fillEnabled=”true” android:fromXScale=”0.0″…
Read more