Closed louischan-oursky closed 6 years ago
.idea/
should be committed (at least once), recommended by jetbrains. We can consider ignore subsequent changes.LiveData
works like observable, it is supposed to bundled with ViewModel
(quote: A LiveData object is usually stored within a ViewModel object and is accessed via a getter method
, technically we could use it like a standard observable tho), so the use pattern is slightly different with redux
- which is plain data store.More on AC
LiveData
only address part of the observer requirement, brings convenience life-cycle awareness with ViewModel
(on Rx
you need manual dispose or lifecycle
module supports). However it lacks support on threading
, distinct
, map
, filter
and other operators.
Even Google recommends using LiveData
with ViewModel
as view state, and Rx
with business logic - LiveData
& Rx
might be used side-by-side if needed, it's not meant to replace.
Further reading: https://stackoverflow.com/questions/46312937/when-to-use-rxjava-in-android-and-when-to-use-livedata-from-android-architectura
Just take a look at anko, agree the layout DSL is a good start.
I just had a quick look on the new kotlin skeleton. Here are comments.
.idea/
. Please remove them.@rickmak @hidden-dimensions