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

Get Android Programming with Kotlin for Beginners 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.