Bitmap manipulation demo app
Now we have studied the theory, let's draw and spin some bitmaps. Create a new project and call it Manipulating Bitmaps. This time, be sure to choose the Empty Activity option on the Add an Activity to Mobile screen before clicking Next. Also, be sure to uncheck Generate Layout File and Backwards Compatibility. Don't worry about naming the Activity; this is just an app to play around with we will not be returning to it.
Add the graphic to the project
Right-click and select Copy to copy the bob.png
graphics file from the download bundle in the Chapter 20/Manipulating Bitmaps/drawable
folder.
In Android Studio, locate the app/res/drawable
folder in the project explorer window. This next screenshot makes clear where this folder can be 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 OK twice to confirm the default options for importing the file...