The Bitmap manipulation demo app
Now that we have studied the theory, let's draw and spin some bitmaps. First, create a new project and call it Bitmap manipulation
. Choose the Empty Activity option with all the other settings as they have been throughout the book.
Adding the Bob graphic to the project
Right-click and select Copy to copy the bob.png
graphics file from the download bundle in the Chapter20/Bitmap Manipulation/drawable
folder. Bob, represented by bob.png
, is a simple, static video game character.
In Android Studio, locate the app/res/drawable
folder in the project explorer window and paste the bob.png
image file into it. The following screenshot makes it clear where this folder is located and what it will look like with the bob.png
image in it:
Right-click on the drawable
folder and select Paste to add the bob.png
file to the project. Click on OK twice to confirm the default options for importing the file into the project.
In this app, we will make the same change that we did...