Build android application for basic level and modern way with:
1. MVVM with unidirectional data flow and state event
2. Kotlin extensions
3. View Binding
4. No edit
Part 1:
• News App - 1 The Basic #android
Notes:
Halo
View Binding
Setup gradle
Setup binding
Change all `findViewById` to id generated
State Event (MVI)
Create event for `Idle`, `Loading`, `Success`, `Error`
Implement state event in repository
Create view for each event
Add delay between `Loading` and `Success` event in repository
Not working
Try with different job coroutine
Not working
Let's log with println wkwkw
Shit, wrong logic in render state loading hahahaha
Let's remove delay and use suspend again
WORK'S
Kotlin extensions for utilities
Refactor to extensions util:
Fetching web services with state
Create `Response` (retrofit) extensions to flow event
Setup with mapper
When operator in state event observer
Error handling
Next...
Next?
Git
Error handling
Copyright background sound:
- - - -
Almost in F - Tranquillity by Kevin MacLeod is licensed under a Creative Commons Attribution 4.0 license. https://creativecommons.org/licenses/...
Source: http://incompetech.com/music/royalty-...
Artist: http://incompetech.com/
- - - -
Fluidscape by Kevin MacLeod is licensed under a Creative Commons Attribution 4.0 license. https://creativecommons.org/licenses/...
Source: http://incompetech.com/music/royalty-...
Artist: http://incompetech.com/
- - - -