Git Product home page Git Product logo

Comments (2)

hegaojian avatar hegaojian commented on August 16, 2024

之所以用AndroidViewModel是为了满足某些用户的需求需要在viewmodel中用到上下文,换成了AndroidViewModel其实就是兼容性提高了点,但是我开发中好像没有在viewmodel中用到过上下文...后面优化下吧,写2个BaseViewMoudel 一个继承AndroidViewModel 一个继承ViewMoudel供大家自己选择

这个ktx得拓展函数我还真不知道....知识点还是太浅了啊哈哈, 我自己写的现在看起来有点画蛇添足了,非常感谢你得提示

from jetpackmvvm.

by8023hxy avatar by8023hxy commented on August 16, 2024

好的谢谢作者的回复。
哈哈,那个扩展函数我也是最近才有学到,ktx中有很多东西确实很方便。

from jetpackmvvm.

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.