Giter Site home page Giter Site logo

Comments (4)

JessYanCoding avatar JessYanCoding commented on May 4, 2024

我个人对你不需要view层的理解是,这个页面只有这一个功能,并且逻辑不复杂很简单,不需要更新ui,这种情况的话,可以暂时不需要presenter,也就是说直接在activity用model处理,或者直接在activity请求,但是如果以后很有可能会增加其他功能,那就需要把mvp都生成,毕竟写一个项目在开发时考虑扩展和耦合对以后的迭代会很有帮助,按自己的需求灵活运用,不要被设计模式去局限自己的思路

from mvparms.

jp1017 avatar jp1017 commented on May 4, 2024

@JessYanCoding 谢谢,直接 Model 处理了

from mvparms.

hopecyb avatar hopecyb commented on May 4, 2024

@jp1017 请问,你是如何用model直接处理的,能否贴下代码。刚接触安卓,不好意思。

from mvparms.

jp1017 avatar jp1017 commented on May 4, 2024

也就是说直接在activity用model处理,或者直接在activity请求

有V时正常用P请求,没有V就如上用M请求。

from mvparms.

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.