In this video, Joed Goh explains the basic principle on how to organize your code and properly structure your android apps. This is commonly known as separation of concerns. This video covers the discussion of Lifecycle Observer, View Model, Live Data, and Companion Object.
***NOTE:
if your code in line 23 at 15:30 doesn't work, you can explicitly type the Observer lambda expression like this:
viewModel.message.observe(this, Observer{
// your code here...
})
----------------------------------------------------------------------------------
TABLE OF CONTENTS:
00:00 Introduction
02:10 Lifecycle Observer
09:10 View Model
12:30 Mutable Live Data
18:55 Live Data
25:05 Helper Class - Companion Object
27:46 Programming Challenge
----------------------------------------------------------------------------------
References:
[ Ссылка ]
[ Ссылка ]
PLAYLISTS:
Android App Development in Kotlin
[ Ссылка ]
Designing Database Solutions with Microsoft SQL Server 2019
[ Ссылка ]_
Embedded Systems using Arduino Uno
[ Ссылка ]
Data Structures and Algorithms using C#
[ Ссылка ]
Ещё видео!