Creating the Live Drawing project
To get started, create a new project in Android Studio and call it Live Drawing
. Use the Empty Activity project and uncheck the box to create the project without a layout file and without backward compatibility support. Name the Activity LiveDrawingActivity
.
This app consists of Java files only. The Java files with all the code up to the end of this chapter can be found in the Chapter 21
folder of the download bundle.
Next, we will create empty classes that we will code throughout the project over the next two chapters. Create a new class called LiveDrawingView
, a new class called ParticleSystem,
and a new class called Particle
.