Chapter 19. Animations and Interpolations
Here, we will see how we can use the Animation
class to make our UI a little less static and a bit more interesting. As we have come to expect, the Android API will allow us to do some quite advanced things with relatively straightforward code, and the Animation
class is no different.
This chapter can be approximately divided into these parts:
- An introduction to how animations in Android work and are implemented
- An introduction to a UI widget that we haven't explored yet, the
SeekBar
class - A working animation app
First, let's explore how animations work in Android.
Animations in Android
The normal way to create an animation in Android is through XML. We can write XML animations, and then load and play them through ...
Get Android Programming with Kotlin for Beginners now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.