Learn best practices and architecture recommendations for building high-quality Android apps using the Android Architecture Components for data persistence and display.
Overview
Syllabus
Introduction
- Welcome
- What you should know
- The history and evolution of this app
- Explore the Architecture Components
- Create the starting project
- Import the project from GitHub
- Create a launcher icon
- Create other required graphics
- Add architecture component dependencies
- Add a RecyclerView to the main activity
- Create a custom layout for list rows
- Create a data entity class
- Create sample data for testing
- Display data with a RecyclerView adapter
- Create the note editor activity
- Define a Room entity class
- Implement database operations in a DAO
- Define an SQLite database with Room
- Create a custom type converter
- Create a unit test for database logic
- Create a ViewModel for the list activity
- Create a repository class
- Add a feature to insert sample notes
- Subscribe to LiveData updates
- Add a feature to delete all notes
- Add a ViewModel for the editor activity
- View an existing note in the editor
- Edit an existing note
- Create a new note
- Delete a note
- Handle device orientation changes
- Add divider lines to the RecyclerView
- Next steps
Taught by
David Gassner