Giter VIP home page Giter VIP logo

mvpstudy's Introduction

mvp配置总结

来自慕课网.png

mvp架构分析

  1. BasePresenter 对BaseView的持有。 Baseview的创建 p持有b

  2. Activity承载

知识点插入 泛型通配符?本意就表示符合条件的任意一个对象。比较一下另外一个通配符*,它表示符合条件的所有对象的集合,似乎在Java泛型中没有什么场合需要通配符*。 *lateinit 只用于 var,而 lazy 只用于 val *lazy 应用于单例模式(if-null-then-init-else-return),而且当且仅当变量被第一次调用的时候,委托方法才会执行。 *lateinit 则用于只能生命周期流程中进行获取或者初始化的变量,比如 Android 的 onCreate() 承载activity

  1. 注册一个RegisterActivity继承BaseActivity
  2. 创建RegisterPresenter和RegiseterView,承载的RegisterActivity

总结Mvp,首先创建接口(意图)写出来baseview,将想法实现过程就是basepresenter,展示出来承载的baseActivity。

mvpstudy's People

Contributors

nandy-fan avatar

Watchers

James Cloos avatar  avatar

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.