From the course: Android Compose with Kotlin

Unlock this course with a free trial

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

Implement designs using composables

Implement designs using composables - Kotlin Tutorial

From the course: Android Compose with Kotlin

Implement designs using composables

- [Instructor] Android applications are hierarchical. There's a primary surface or container that holds everything. Then inside of that container are various components that users can interact with. The most standard elements are some type of top navigation, a bottom or side navigation, and finally, your primary content. With view-based layouts, you have a fair amount of flexibility with how you can implement it. One very common way is using a linear layout and then nesting inside of it a coordinator layout along with a bottom navigation view. Then, the coordinator layout is used to house your app bar and the main content, the frame layout being the primary container for your content. Whereas with Compose, there's a more opinionated approach. The primary container is a scaffold. This allows you to quickly assemble your app structure according to material design guidelines. Then, the scaffold composable has parameters for the other layout items you may need. Let's take a look over in…

Contents