Загрузка страницы

Let's Build a Room Database App | Room, ViewModel, LiveData, Dagger 2, MVVM Architecture

Check out these videos if you want to learn more about Android, Clean Architecture, SOLID Principles, Testing, and more:
Android:
- Room Database w/ Kotlin Coroutines, Extension Functions https://youtu.be/CcaCpRCACzU
- Firebase Authentication w/ Google Sign In [detailed guide] https://youtu.be/sXyvRQQL4Hg
- Clean Architecture Use Cases w/ Test Driven Development (Kotlin, Mockk, JUnit) https://youtu.be/ZpAcsWghJYg
- Modern Android Jetpack RecyclerView w/ LiveData for handling OnItemClickListener https://youtu.be/j_2jt94CShU
- Android Implementing Jetpack ViewModel with Kotlin Coroutines https://youtu.be/W2c_HWthB0Y
- Android Material Design Login UI Using ConstraintLayout w/ Animation (Kotlin) https://youtu.be/vfYUK5yKtD4
- Test Driven Development w/ Kotlin, Mockk, JUnit 5, Android https://youtu.be/60KFJTb_HwU
Programming WTF:
- What do "Model" and "State" mean in MVP, MVVM, MVC, MVI https://youtu.be/cXD7aCcDynQ
Also check out my online courses for premium content:
Absolute Beginner's Introduction to Android Development w/ Android Studio https://skl.sh/2ZU6ZT9 (Skillshare Class Referral Link)
Programming Fundamentals w/ Kotlin and Android https://www.udemy.com/application-programming-fundamentals-with-kotlin/
Update 2019: This tutorial and the code is rather old, and I've grown a lot as a developer since I made it. While there should still be some useful information, consider checking my more recent content on AAC, Jetpack, Room, RecyclerView, MVVM Architecture and so forth:
https://www.youtube.com/playlist?list=PLEVlop6sMHCrTf4_wYsRbSKvYGC46rtPc

**If you would like to learn not just the basics of the Kotlin programming language (and if you're doing Android, as a five year Java veteran, I do suggest making the change), but plenty of best practices for software architecture, clean code, and much more, consider checking out my introduction to programming fundamentals with Kotlin:**
https://www.udemy.com/application-programming-fundamentals-with-kotlin/learn/lecture/13538514#overview

Welcome to my Tutorial on Android Architecture Components, including Room Persistence Library, ViewModel, and LiveData. In this tutorial I've done my best to emply the following concepts in the creation of a simple Note-Taking Application:
- Model-View-ViewModel Architecture for the Front End/UI/Presentation Layer
- ViewModel from A.A.C.
- LiveData from A.A.C.

- Repository to Abstract Room's API
- A Simplified Dagger 2 setup (we don't discuss this much as D2 warrants some fairly length explanation I don't have time for here)

============
Repositories
============
Main Project Repository (finished Demo for reference/copy paste)
https://github.com/BracketCove/RoomDemo2017

Starting Point, based on RecyclerView Tutorial's UI:
https://github.com/BracketCove/RoomDemo2017/tree/caf99ee9a29a951e9f77ba487323c1a78e94cb19

Android Architecture Components Samples (Please check these out, I mostly learned Room from them!)
https://github.com/googlesamples/android-architecture-components

Martin Fowler on MVVM (a.k.a. Presentation Model a.k.a. Application Model); gives some history and insight on the pattern:
https://martinfowler.com/eaaDev/PresentationModel.html

================
Timestamps below:
================
If at any point in this Video I come off as being disrespectful (particularly when I'm complaining about MVVM and stuff like that), please forgive me. Part of my content is sharing my expereince as a learner, and it's never my intention to offend anyone.

0:00 Introduction

3:00 Starting point for Source Code

3:50 Gradle and Res (Mostly copy Paste from the finished Repo here)

9:42 Project/Package Structure

12:05 Project Architecture Overview: Model-View-ViewModel

19:40 Room Entities

22:20 Room Data Access Object (DAO)

33:40 Room Database

37:28 LiveData (Android Architecture Components)

43:27 ListItemRepository (Repository to Abstract Room from ViewModels)

49:52 Activities and Views (This is mostly Copy and Paste, check old tutorial for help with building Layouts)

57:37 A simple Dagger 2 Set Up

1:07:28 ViewModel (Android Architecture Components)

1:17:33 ViewModelProvider.Factory (How to pass arguments to ViewModel Constructor)

1:24:00 Wiring up Views, ViewModels, and Observing the Data

1:34:45 Debugging and Demo

1:39:18 Working Demo!!!

1:41:00 Outro, Thanks, and Future Plans

Видео Let's Build a Room Database App | Room, ViewModel, LiveData, Dagger 2, MVVM Architecture канала Ryan Michael Kay
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
30 августа 2017 г. 21:46:19
01:44:16
Яндекс.Метрика