View Models ~ Android Tic-Tac-Toe
Автор: KotlinBytes
Загружено: 2021-02-16
Просмотров: 603
Описание:
KotlinBytes - View Models ~ Android Tic-Tac-Toe
In my last episode, I showed you how to bind our Tic-Tac-Toe layout to Kotlin code for this Android app that we are creating. In this episode, I will show you how to create a ViewModel to store our game's state. Let's get started!
Chapters:
0:00 - Intro
0:18 - MVVM Overview
0:58 - Create ViewModel
1:20 - Add Fragment-KTX
1:38 - Provide ViewModel to Activity
1:52 - Create Board Model
2:12 - Create Cell Enum
2:20 - Create CellState Sealed Class
2:36 - Get Cell State from Board
2:50 - Setup ViewModel properties
3:20 - Add Live Data observer
4:09 - Testing
4:21 - Wrapping Up
Android Studio:
https://developer.android.com/studio
Android View Models:
https://developer.android.com/topic/l...
Source code:
https://github.com/jacobklewis/Tic-Ta...
Music:
Cyber Thriller by | e s c p | https://escp-music.bandcamp.com
Music promoted by https://www.free-stock-music.com
Attribution 4.0 International (CC BY 4.0)
https://creativecommons.org/licenses/...
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: