Giter Site home page Giter Site logo

Comments (1)

qingmei2 avatar qingmei2 commented on May 1, 2024

@ExplodedJelly

最新的代码中,我已经将ViewDelegate删掉了,Google的方式肯定是非常正确的,因为它试图将对UI组件的通知事件转换为了Event(或者叫做状态,事件本身也是状态的一部分),这些Event在View层渲染和处理前,都是可测试的(即纯Java的)。

为什么现在一些新的Mvvm项目都使用MutableLiveData而不使用Observeable(ObservableBoolean这些)来绑定数据了呢?

因为LiveData确实好用呀,我个人猜测,其实也就是Google想要推动LiveData及相关的jetpack组件把,因为我确实觉得它和RxJava相比,其功能性实在太弱了,于我而言,如果不是LiveData原生支持DataBinding,我不会用它,因为它能做的rx都能做,并且做的更好。


其实我也是在不断的探索中,有些地方的实现肯定是值得商榷的,欢迎互相交流探讨。 🤝

from mvvm-architecture.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.