Android Sunflower Garden Tutorial (Kotlin + Android Jetpack) - Intro


Hello everyone, I am here to explore the project Android Sunflower published by Google on github.

In this project Android Architecture Component  (Jetpack) and Android Material design is used and lot of new features of Android X and Kotlin Extension is used.

I am planning to provide a step by step tutorial for this Android Sunflower project.

If you like please share, comment and help me to provide all parts of this project.

Sunflower uses many Jetpack components. Here’s a brief look at how each component plays its part:


  • Sunflower is written entirely in Kotlin, using Android KTX. Android KTX is a set of Kotlin extensions that optimizes Jetpack and Android platform APIs for more concise and idiomatic Kotlin code.
  • The app uses a single Activity with multiple Fragments. Transitions between fragments use the Navigation component and transition animation actions.
  • The screens use fragment layouts, created using ConstraintLayout and Data Binding
  • On-device data storage of the plant list and my garden entries are managed with Room at the database level, and surfaced to the UI through ViewModels via LiveData
  • AppCompat is used to preserve key app functionality on older versions of Android
  • Background tasks are handled by WorkManager
  • Plant details can be shared with other applications on the device, or simply copied to the clipboard
  • Testing is performed by both local JUnit tests and Espresso Android UI tests

Setup your Android Studio before move to Part 1.

  • Update your Android Studio to Latest Version. (I am going to use beta version)
  • Update the Kotlin libraries.
  • Read about Kotlin, if you don't know.
  • Move to next part :) .

Comments