Open Malachiasz opened 5 years ago
ObservableField -> data-binding, for property level, not be played as event-handler. LiveData -> interactions between ViewModels and other components or ViewModels or classes, like event-handlers. These r my opinions, they are two different concepts. Of cos, LiveData is observable.
@XinyueZ ObservableField could be a subset of LiveData, as LiveData does exactly what ObservableField does plus is aware of LifecycleOwner and has convinience method for setingField on Main thread. I don't see the reason why to use them both. It's exactly the same concept, except that databinding.Observable removes Obdervable through generated code and LiveData through code which is there.
Don't you think it's better to stick to one or the other? What benefits gives using them both in one project?