Android Architecture Component || Room Database , ViewModel , LiveData, RecyclerView (MVVM) In this Android Architecture Component, We are going to learn how to work with the room database and view model. Once we add users data in our database we are going to preview recycler view.
We shall also learn how to manupulate data in our room database that is,
Tutorial divided into 3 parts:
PART 1: we shall learn to:
Add room database dependencies.
Add LifeCycle Dependencies.
Create Room Database Entity ( Users table )
Create Room Database Dao ( Data Access Object )
Create room database Database
Create room database Repository
PART 2: We shall learn to:
Create View Model Class
Create row items that will hold recyclerView items
Create menu item ( will contain update and delete menu )
Create RecyclerView Adapter
Add Recyclerview to our main activity.
Display room database record in our recycler view
Add new records to our room database
Update room database records
Delete room database record.
For additional help, kindly comment below.
For source code, you can get it for only $5 to support this work.