JungIn Choi
04/02/2021, 2:14 PMDay21
• Finished Lesson5
◦ ViewModelFactory (creates ViewModels)
▪︎ Factory : class that know how to initiate objects -> ViewModelFactory : class that knows how to create ViewModels
◦ Adding a constructor to a ViewModel (needed if u want to pass some data when ViewModel is created)
▪︎ 1) Create ViewModel with constructor parameter 2) Create ViewModelFactory 3) Pass ViewModelFactory to ViewModelProvider
◦ Adding ViewModel as data binding variable in layout & Adding LiveData data binding
• Bluetooth basics related googlings (1) & etc.
Self-Comment
• UI Part is always so hard to push through. Easily distracted😂
• When I run android emulator, speaker seems to be affected..? WT..Interesting and annoying. Curious what’s happening..
• Tomorrow I have to checkout in morning, move to another guesthouse. Then my friends come over at evening. So I’ll have to spend three hour gap efficiently and productively. (Actually I like this kind of tight schedule, it somehow feels like a game mission) + I might use pass at Sunday.
Goals Tomorrow
• Halfway through Lesson6