Skip to content

Aymane199/Simple_Kotlin_Room_CRUD

Repository files navigation

Android Jetpack

Jetpack is a suite of libraries to help developers follow best practices, reduce boilerplate code, and write code that works consistently across Android versions and devices so that developers can focus on the code they care about.(more)

Room

The Room persistence library provides an abstraction layer over SQLite to allow for more robust database access while harnessing the full power of SQLite.(Guide)

ViewModel

The ViewModel class is designed to store and manage UI-related data in a lifecycle conscious way. The ViewModel class allows data to survive configuration changes such as screen rotations. (Guide)

LiveData

LiveData is an observable data holder class. Unlike a regular observable, LiveData is lifecycle-aware, meaning it respects the lifecycle of other app components, such as activities, fragments, or services. This awareness ensures LiveData only updates app component observers that are in an active lifecycle state.(Guide)

Navigation

Navigation refers to the interactions that allow users to navigate across, into, and back out from the different pieces of content within your app. Android Jetpack's Navigation component helps you implement navigation, from simple button clicks to more complex patterns, such as app bars and the navigation drawer. The Navigation component also ensures a consistent and predictable user experience by adhering to an established set of principles.(Guide)

Architecture overview

  • /data (manage local data SQLite data source using objects)
  • /fragment (UI of our app)
  • /model (store the entities schema)
  • /repository (clean API for UI to communicate with)
  • /viewmodel (holds all the date needed for the UI)

License

Simple_Kotlin_Room_CRUD android is distributed under the MIT License. Copyright (c) 2020 Rizke Aymane.

Releases

No releases published

Packages

No packages published

Languages