December 2015
Beginner
698 pages
15h 16m
English
ImageView can hold any image you like. Just add the image to the drawable folder and then set the appropriate src property on the ImageView. You can then animate whatever image is being shown in the ImageView widget.
To implement this kind of functionality, you will need to learn another general computing concept (threads) as well as some more Android classes (such as Paint, Canvas, and SurfaceView). You will learn how to draw anything from a single pixel to shapes, and then how to move them around the screen in Chapter 28, Threads, Touches, Drawing, and a Simple Game.
Read now
Unlock full access