blackinitial / kotlin-basics-inventory

Learn how to save user's data in the app. First you'll use Room to read and write changes to a database. Then you'll use Preferences DataStore to store user preferences in the app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inventory - Starter Code

Starter code for Android Basics in Kotlin.

Introduction

This app is an stater code for an Inventory tracking app. Demos how to add, update, sell, and delete items from the local database. This app demonstrated the use of Android Jetpack component Room database.

The app also leverages ViewModel, LiveData, Flow, View Binding, and Navigation with the SafeArgs plugin for parameter passing between fragments.

Pre-requisites

You need to know:

  • How to create and use fragments.
  • How to navigate between fragments, and use safeArgs to pass data between fragments.
  • How to use architecture components including ViewModel, LiveData, and LiveData transformations.
  • How to use coroutines for long-running tasks.
  • RecyclerView and adapters
  • SQLite database and the SQLite query language

Getting Started

  1. Download and run the app.

About

Learn how to save user's data in the app. First you'll use Room to read and write changes to a database. Then you'll use Preferences DataStore to store user preferences in the app.

License:Apache License 2.0


Languages

Language:Kotlin 100.0%