What Else Do We Need?

Android Studio added a bunch of files for us to help us get started on the app, but there are a few more things we’d like to add before we try hooking everything up. Here’s what we still need:

  • Fragment classes that we’re using for our views.
  • A menu to tell the bottom nav which options to display.
  • A navigation graph to tell the MainActivity which view to display.
  • Images for the bottom navigation.
  • Updates to MainActivity to bring everything together.

Fragment Classes

While the MainActivity is going to be the entry point for our app, we’re actually only going to be using that single Activity for our app. For any experienced Android developers used to large, heavy Activity classes doing everything, this may seem odd.

However, having ...

Get Kotlin and Android Development featuring Jetpack 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.