John Mavrick's Garden

Search IconIcon to open search

Last updated Unknown

App Development **Variable declaration

Printing variables

If statements

Unchangeable array = listOf

Changeable array = arrayListOf

Dictionaries = mapOf(key to value)

.getOrDefault

Changeable dictionary = hashMapOf

.put

App Development

Timber

Lifecycle

To implement:

SavedInstanceState

ex) outState.putInt(intVariable)

App Architecture

UI Controller

ViewModel

Implementation

ex) private lateinit var viewModel: GameViewModel

Factories

LiveData

Implementation

//in ui controller onCreate method

updateScoreText(newScore)

//Score changes

score.value = 1

Encapsulating Live Data

Databases

DAO

Threading

Coroutines

Coroutines need…

Implementation


Interactive Graph