Canvas Demo app
Let's create another new project to explore the topic of drawing with Canvas
. We will reuse what we just learned and this time we will also draw to the Bitmap
.
Creating a new project
Create a new project in the same way as we did for Sub Hunter but call it Canvas Demo
. If you have the Sub Hunter project open now you can select File | New Project and create a project using the following options.
Option |
Value entered |
---|---|
Application name: |
Canvas Demo |
Company domain: |
gamecodeschool.com (or your own) |
Include C++ support |
Leave this option unchecked |
Project location: |
D:\AndroidProjects\CanvasDemo |
As we did before, be sure the Empty Activity option is selected on the Add an Activity to Mobile screen before clicking Next. Also, be ...
Get Learning Java by Building Android Games - Second Edition 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.