Step 5: Adding a Canvas

Goal:


Next we’re going to add a component called a Canvas.

If you love art, or have ever taken interest in painting or something similar, you may have heard this word before.

In art, a Canvas is generally something you draw or create on.

Here, a Canvas does almost the same thing. It acts as a component we can draw on inside our app. We will use this to be able to doodle.

Steps:

  1. Inside the Palette on the left side of the screen, click on Drawing and Animation.
  2. Drag in a Canvas into the phone under the Horizontal Arrangement.

Code:


Click to replay