-
Book Overview & Buying
-
Table Of Contents
Cardboard VR Projects for Android
By :
To build this project, we're going to use our RenderBox library created in Chapter 5, RenderBox Engine. You can use yours, or grab a copy from the downloadable files provided with this book or from our GitHub repository (use the commit tagged after-ch7—https://github.com/cardbookvr/renderboxlib/releases/tag/after-ch7). For a more detailed description of how to import the RenderBox library, refer to the final section, Using RenderBox in future projects, of Chapter 5, RenderBox Engine. To create a new project, perform the following steps:
With Android Studio opened, create a new project. Let's name it Gallery360 and target Android 4.4 KitKat (API 19) with an Empty Activity.
Create new modules for the renderbox, common and core packages, using File | New Module | Import .JAR/.AAR Package.
Set the modules as dependencies for the app, using File | Project Structure.
Edit the build.gradle file as explained in Chapter 2, The Skeleton Cardboard Project, to compile against SDK...
Change the font size
Change margin width
Change background colour