Creating images

We've taken a look at the project structure of an Android project. So, by now we are clear about the difference between where to put code files and where to put our resources. Images are resources, and therefore, they can either be put in the res folder of our Android Studio Project or AssetManager, but more specifically, we can't just put them in the res folder.

There is, by convention, a specific folder exclusively for our image resources, that is, the drawable folder. You can find this folder in app/res/drawable. If you are not able to see it, then create it manually by right-clicking on the res folder and selecting New | Android resource directory, and in Resource Type, select drawable. You do not have to do this if the  ...

Get Learning Android Game Development now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.