Skip to content

How to implement recommended app architecture practices within a more advanced use case. How to use a shared ViewModel across fragments in an activity. How to apply a LiveData transformation

License

Notifications You must be signed in to change notification settings

shaima-alghamdi-tuwaiq/Cupcake-App

Repository files navigation

Cupcake app

This app contains an order flow for cupcakes with options for quantity, flavor, and pickup date. The order details get displayed on an order summary screen and can be shared to another app to send the order.

This app demonstrates multiple fragments in an activity, a shared ViewModel across fragments, data binding, LiveData, and the Jetpack Navigation component.

Pre-requisites

  • Familiar with activities and fragments
  • How to use styles and themes in the UI
  • Basic understanding of Jetpack architecture components including ViewModel and LiveData
  • Data binding and binding expressions
  • Kotlin syntax basics

Getting Started

  1. Install Android Studio, if you don't already have it.
  2. Download the sample.
  3. Import the sample into Android Studio.
  4. Build and run the sample.

About

How to implement recommended app architecture practices within a more advanced use case. How to use a shared ViewModel across fragments in an activity. How to apply a LiveData transformation

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages