From the course: Android Compose with Kotlin

Unlock this course with a free trial

Join today to access over 24,300 courses taught by industry experts.

Set up a navigation controller

Set up a navigation controller - Kotlin Tutorial

From the course: Android Compose with Kotlin

Set up a navigation controller

- [Instructor] Since your last visit, I've beefed up our app a bit. We now have composable screens for each of our destinations. First, the Sessions screen, the Speakers screen, as well as the Favorites screen. They are bare bones at this point. They contain a column and some text composables. However, the Session Details screen is fully featured. If we move over to there, here's what it has so far. We have a primary column composable that is scrollable. Inside of it, we have a session header, session time, as well as a text composable that contains the session's description, and you can look over here at the preview to get a sense of what this looks like, both in portrait and landscape modes. With that done, we can now set up the navigation component for our app. To do that, we'll move over to the app class, which is located here, and we're going to add this to our scaffold. If you recall, the navigation host is the thing that contains all of the content of our screens. So the first…

Contents